From: Felix Fietkau <nbd@openwrt.org>
Date: Tue, 23 Sep 2008 17:29:22 +0000 (+0000)
Subject: don't emit ifup hotplug events on dhcp renew - use a new iface hotplug type 'update... 
X-Git-Tag: reboot~25545
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=35b92f0c993822a2a6d610772249efe91d9a4afb;p=openwrt%2Fopenwrt.git

don't emit ifup hotplug events on dhcp renew - use a new iface hotplug type 'update' instead; fixes #3906

SVN-Revision: 12671
---

diff --git a/package/base-files/files/usr/share/udhcpc/default.script b/package/base-files/files/usr/share/udhcpc/default.script
index 147b9f1a93..0eb044c512 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