From 8b0d8253f3bcf6b2129b8696d73e417f545e39fa Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 23 Sep 2008 17:29:22 +0000 Subject: [PATCH] don't emit ifup hotplug events on dhcp renew - use a new iface hotplug type 'update' instead; fixes #3906 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12671 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/usr/share/udhcpc/default.script | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package/base-files/files/usr/share/udhcpc/default.script b/package/base-files/files/usr/share/udhcpc/default.script index 147b9f1a9..0eb044c51 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 -- 2.20.1