X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/ecec813b40cc99880644a13f521568cfef93f4cd..412b70da5ee4d4c9a90f1d1eb4ac61e3ca904732:/package/base-files/files/etc/init.d/network diff --git a/package/base-files/files/etc/init.d/network b/package/base-files/files/etc/init.d/network index 950b33726..b63ed0b85 100755 --- a/package/base-files/files/etc/init.d/network +++ b/package/base-files/files/etc/init.d/network @@ -2,13 +2,16 @@ # Copyright (C) 2006 OpenWrt.org START=40 +STOP=40 + boot() { setup_switch() { return 0; } include /lib/network setup_switch - [ -e /etc/config/wireless ] || \ + [ -s /etc/config/wireless ] || \ /sbin/wifi detect > /etc/config/wireless + ifup -a /sbin/wifi up } @@ -18,6 +21,10 @@ start() { } restart() { + setup_switch() { return 0; } + + include /lib/network + setup_switch ifup -a /sbin/wifi up }