summaryrefslogtreecommitdiffstats
path: root/package/base-files/default/etc/init.d/network
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/default/etc/init.d/network')
-rwxr-xr-xpackage/base-files/default/etc/init.d/network14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/base-files/default/etc/init.d/network b/package/base-files/default/etc/init.d/network
new file mode 100755
index 000000000..45d5311a7
--- /dev/null
+++ b/package/base-files/default/etc/init.d/network
@@ -0,0 +1,14 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006 OpenWrt.org
+
+START=40
+start() {
+ setup_switch() { return 0; }
+
+ include /lib/network
+ setup_switch
+ [ -e /etc/config/wireless ] || \
+ /sbin/wifi detect > /etc/config/wireless
+ /sbin/wifi up
+}
+