fix a few issues with dynamically assigned interfaces
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 12 Sep 2007 17:02:34 +0000 (17:02 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 12 Sep 2007 17:02:34 +0000 (17:02 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8765 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/sbin/ifdown
package/base-files/files/usr/share/udhcpc/default.script

index f8ce81b..08433c7 100755 (executable)
@@ -11,6 +11,8 @@
        exit
 }
 
+config_load /var/state/network
+
 # remove the interface's network state
 FILE=/var/state/network.$$
 grep -v "^config_set '$1' " /var/state/network > "$FILE"
index 7ce3d2a..30e84e6 100755 (executable)
@@ -7,6 +7,7 @@ RESOLV_CONF="/tmp/resolv.conf.auto"
 
 hotplug_event() {
        scan_interfaces
+       config_load /var/state/network
        for ifc in $interfaces; do
                config_get ifname $ifc ifname
                [ "$ifname" = "$interface" ] || continue