X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fbase-files%2Ffiles%2Fetc%2Finit.d%2Fnetwork;h=75103ec073d9d2ad9b59ca0b197c332f00731284;hb=943fc97fb0340c01d8039bccbfc6c90ddcffc774;hp=e77db02517decf8345699140cad726cc0169dfcc;hpb=d303e45f4bbad9c4fff934cf8f63f33538af8cee;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 e77db0251..75103ec07 100755 --- a/package/base-files/files/etc/init.d/network +++ b/package/base-files/files/etc/init.d/network @@ -4,7 +4,18 @@ START=40 STOP=40 +config_cb() { + local cfg_type="$1" + + case "$cfg_type" in + interface) + append networks "$2" "$N" + ;; + esac +} + boot() { + uci_load network setup_switch() { return 0; } include /lib/network @@ -12,6 +23,10 @@ boot() { [ -s /etc/config/wireless ] || \ /sbin/wifi detect > /etc/config/wireless /sbin/wifi up + for network in $networks; do + config_get startupcheck $network started + [ "$startupcheck" = "" ] && ifup $network + done } start() {