summaryrefslogtreecommitdiff
path: root/package/base-files/files/usr
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-09-23 17:29:22 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-09-23 17:29:22 +0000
commit35b92f0c993822a2a6d610772249efe91d9a4afb (patch)
tree0483d27d3f77cc942da9626e0a18b6fac660213f /package/base-files/files/usr
parentdeb3f959967461c250f5f1d4b6bbcb63911a4b51 (diff)
downloadmtk-20170518-35b92f0c993822a2a6d610772249efe91d9a4afb.zip
mtk-20170518-35b92f0c993822a2a6d610772249efe91d9a4afb.tar.gz
mtk-20170518-35b92f0c993822a2a6d610772249efe91d9a4afb.tar.bz2
don't emit ifup hotplug events on dhcp renew - use a new iface hotplug type 'update' instead; fixes #3906
SVN-Revision: 12671
Diffstat (limited to 'package/base-files/files/usr')
-rwxr-xr-xpackage/base-files/files/usr/share/udhcpc/default.script6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/base-files/files/usr/share/udhcpc/default.script b/package/base-files/files/usr/share/udhcpc/default.script
index 147b9f1..0eb044c 100755
--- a/package/base-files/files/usr/share/udhcpc/default.script
+++ b/package/base-files/files/usr/share/udhcpc/default.script
@@ -56,7 +56,11 @@ case "$1" in
mv "${RESOLV_CONF}.tmp" "$RESOLV_CONF"
}
- hotplug_event ifup
+ if [ "$1" = "renew" ]; then
+ hotplug_event update
+ else
+ hotplug_event ifup
+ fi
# user rules
[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user