summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpackage/base-files/files/usr/share/udhcpc/default.script6
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 147b9f1..0eb044c 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