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 | 48a688385f9c009641685adfc68dcf97a8c2f56a (patch) | |
tree | edac6e538420ab820e1cda2e157392e55032f05c /package/base-files/files/usr/share/udhcpc/default.script | |
parent | 7551ce803df9b5d68c70b1ad1f0813004f3a06a3 (diff) | |
download | master-187ad058-48a688385f9c009641685adfc68dcf97a8c2f56a.tar.gz master-187ad058-48a688385f9c009641685adfc68dcf97a8c2f56a.tar.bz2 master-187ad058-48a688385f9c009641685adfc68dcf97a8c2f56a.zip |
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
Diffstat (limited to 'package/base-files/files/usr/share/udhcpc/default.script')
-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 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 |