summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-09-12 17:02:34 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-09-12 17:02:34 +0000
commitf7ff1d6d0f03c3f7ce8c0349ac33739a8e1a9ebb (patch)
tree592d3558e39980b0277a034be4e82d6617ae693b /package/base-files
parent64f9a226798a664fbcc67aaa4641f6a385607e53 (diff)
downloadmtk-20170518-f7ff1d6d0f03c3f7ce8c0349ac33739a8e1a9ebb.zip
mtk-20170518-f7ff1d6d0f03c3f7ce8c0349ac33739a8e1a9ebb.tar.gz
mtk-20170518-f7ff1d6d0f03c3f7ce8c0349ac33739a8e1a9ebb.tar.bz2
fix a few issues with dynamically assigned interfaces
SVN-Revision: 8765
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/sbin/ifdown2
-rwxr-xr-xpackage/base-files/files/usr/share/udhcpc/default.script1
2 files changed, 3 insertions, 0 deletions
diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown
index f8ce81b..08433c7 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 7ce3d2a..30e84e6 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