udhcpc: run dhcp hotplug events after dns has been set

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15095 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2009-04-04 07:07:25 +00:00
parent 94f59cdab7
commit 78b2e3f950
1 changed files with 7 additions and 7 deletions

View File

@ -58,12 +58,6 @@ case "$1" in
[ -n "$dns" ] && \ [ -n "$dns" ] && \
echo -n > "${RESOLV_CONF}.tmp" echo -n > "${RESOLV_CONF}.tmp"
if [ "$1" = "renew" ]; then
hotplug_event update
else
hotplug_event ifup
fi
[ -n "$dns" ] && { [ -n "$dns" ] && {
[ -s "${RESOLV_CONF}.tmp" ] || { [ -s "${RESOLV_CONF}.tmp" ] || {
for i in $dns ; do for i in $dns ; do
@ -76,7 +70,13 @@ case "$1" in
mv "${RESOLV_CONF}.tmp" "$RESOLV_CONF" mv "${RESOLV_CONF}.tmp" "$RESOLV_CONF"
} }
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
;; ;;