don't emit ifup hotplug events on dhcp renew - use a new iface hotplug type 'update...
authorFelix Fietkau <nbd@openwrt.org>
Tue, 23 Sep 2008 17:29:22 +0000 (17:29 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 23 Sep 2008 17:29:22 +0000 (17:29 +0000)
SVN-Revision: 12671

package/base-files/files/usr/share/udhcpc/default.script

index 147b9f1a93f5765149fa4bc288a14c656c5edab1..0eb044c512549b4133e85a1bec41f0b82e9887b3 100755 (executable)
@@ -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