fix a few issues with dynamically assigned interfaces
authorFelix Fietkau <nbd@openwrt.org>
Wed, 12 Sep 2007 17:02:34 +0000 (17:02 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 12 Sep 2007 17:02:34 +0000 (17:02 +0000)
SVN-Revision: 8765

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

index f8ce81bcbdcfcbce8de811420112d6d58fbbc7cc..08433c75c6e392f6ab537fdd4513610e871d5b84 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 7ce3d2aa89c3bb7f346a7e1e1b7c611da97742c2..30e84e6da2f51b8fa710fc1bc30385acff9c71ab 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