X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fbase-files%2Ffiles%2Fetc%2Finit.d%2Fnetwork;h=3587c24aaa87e50cd46ab158f39c9e2f99d5e6c9;hb=c7c67a3dd0ba46763c9fd754933fd73286e0ca77;hp=ef415957cc9a1a4595eef29405ed3d4a770f703f;hpb=bad699e8c2dcf2e8ca61c8e4167c9ad53974e8be;p=openwrt-10.03%2F.git diff --git a/package/base-files/files/etc/init.d/network b/package/base-files/files/etc/init.d/network index ef415957c..3587c24aa 100755 --- a/package/base-files/files/etc/init.d/network +++ b/package/base-files/files/etc/init.d/network @@ -2,7 +2,7 @@ # Copyright (C) 2006 OpenWrt.org START=40 -STOP=40 +STOP=90 boot() { setup_switch() { return 0; } @@ -15,12 +15,10 @@ boot() { } start() { - ifup -a - /sbin/wifi up -} - -restart() { - setup_switch() + setup_switch() { return 0; } + + include /lib/network + setup_switch ifup -a /sbin/wifi up } @@ -28,3 +26,7 @@ restart() { stop() { ifdown -a } + +restart() { + start +}