add new rc.common for standardized init scripts, convert existing init scripts
[openwrt.git] / package / base-files / default / etc / init.d / S40network
index f2c3e22859b1b23238d599b2ec3f750eca67a680..be045045e77ab7ce6afcb12a6e2c56f950f655de 100755 (executable)
@@ -1,9 +1,11 @@
-#!/bin/sh
+#!/bin/sh /etc/rc.common
 # Copyright (C) 2006 OpenWrt.org
 
-setup_switch() { return 0; }
+start() {
+       setup_switch() { return 0; }
+
+       include /lib/network
+       setup_switch
+       /sbin/wifi
+}
 
-. /etc/functions.sh
-include /lib/network
-setup_switch
-/sbin/wifi