From 5668f2ec2143d73218223baf200b3222b9aabbb4 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 12 Sep 2007 17:02:34 +0000 Subject: fix a few issues with dynamically assigned interfaces git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8765 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/sbin/ifdown | 2 ++ package/base-files/files/usr/share/udhcpc/default.script | 1 + 2 files changed, 3 insertions(+) (limited to 'package/base-files/files') diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown index f8ce81bcb..08433c75c 100755 --- a/package/base-files/files/sbin/ifdown +++ b/package/base-files/files/sbin/ifdown @@ -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" diff --git a/package/base-files/files/usr/share/udhcpc/default.script b/package/base-files/files/usr/share/udhcpc/default.script index 7ce3d2aa8..30e84e6da 100755 --- a/package/base-files/files/usr/share/udhcpc/default.script +++ b/package/base-files/files/usr/share/udhcpc/default.script @@ -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 -- cgit v1.2.3