From f7ff1d6d0f03c3f7ce8c0349ac33739a8e1a9ebb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 12 Sep 2007 17:02:34 +0000 Subject: [PATCH] fix a few issues with dynamically assigned interfaces SVN-Revision: 8765 --- package/base-files/files/sbin/ifdown | 2 ++ package/base-files/files/usr/share/udhcpc/default.script | 1 + 2 files changed, 3 insertions(+) diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown index f8ce81bcbdc..08433c75c6e 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 7ce3d2aa89c..30e84e6da2f 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 -- 2.30.2