From: Felix Fietkau Date: Sat, 4 Apr 2009 07:07:25 +0000 (+0000) Subject: udhcpc: run dhcp hotplug events after dns has been set X-Git-Tag: reboot~24052 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6a50bf433ad158a08b50bfcff7ff7b0230a998ea;p=openwrt%2Fstaging%2Flynxis.git udhcpc: run dhcp hotplug events after dns has been set SVN-Revision: 15095 --- diff --git a/package/base-files/files/usr/share/udhcpc/default.script b/package/base-files/files/usr/share/udhcpc/default.script index 198ef13c0f..84c7297838 100755 --- a/package/base-files/files/usr/share/udhcpc/default.script +++ b/package/base-files/files/usr/share/udhcpc/default.script @@ -58,12 +58,6 @@ case "$1" in [ -n "$dns" ] && \ echo -n > "${RESOLV_CONF}.tmp" - if [ "$1" = "renew" ]; then - hotplug_event update - else - hotplug_event ifup - fi - [ -n "$dns" ] && { [ -s "${RESOLV_CONF}.tmp" ] || { for i in $dns ; do @@ -76,7 +70,13 @@ case "$1" in mv "${RESOLV_CONF}.tmp" "$RESOLV_CONF" } - + + if [ "$1" = "renew" ]; then + hotplug_event update + else + hotplug_event ifup + fi + # user rules [ -f /etc/udhcpc.user ] && . /etc/udhcpc.user ;;