diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-09-23 17:29:22 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-09-23 17:29:22 +0000 |
commit | 35b92f0c993822a2a6d610772249efe91d9a4afb (patch) | |
tree | 0483d27d3f77cc942da9626e0a18b6fac660213f /package/base-files | |
parent | deb3f959967461c250f5f1d4b6bbcb63911a4b51 (diff) | |
download | mtk-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')
-rwxr-xr-x | package/base-files/files/usr/share/udhcpc/default.script | 6 |
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 |