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

SVN-Revision: 12671
This commit is contained in:
Felix Fietkau 2008-09-23 17:29:22 +00:00
parent deb3f95996
commit 35b92f0c99
1 changed files with 5 additions and 1 deletions

View File

@ -56,7 +56,11 @@ case "$1" in
mv "${RESOLV_CONF}.tmp" "$RESOLV_CONF" mv "${RESOLV_CONF}.tmp" "$RESOLV_CONF"
} }
hotplug_event ifup if [ "$1" = "renew" ]; then
hotplug_event update
else
hotplug_event ifup
fi
# user rules # user rules
[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user [ -f /etc/udhcpc.user ] && . /etc/udhcpc.user