X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/ecec813b40cc99880644a13f521568cfef93f4cd..a4bdef9ca9051d829ee12f9f8ae36016f0c2136e:/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..e77db0251 100755 --- a/package/base-files/files/etc/init.d/network +++ b/package/base-files/files/etc/init.d/network @@ -2,12 +2,14 @@ # 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 /sbin/wifi up } @@ -18,6 +20,10 @@ start() { } restart() { + setup_switch() { return 0; } + + include /lib/network + setup_switch ifup -a /sbin/wifi up }