aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/usr/share
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-04-04 07:07:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-04-04 07:07:25 +0000
commit6a50bf433ad158a08b50bfcff7ff7b0230a998ea (patch)
tree73f7dd820a3761e69a9aead134847060c18b10a6 /package/base-files/files/usr/share
parent39cb0be665f98fea2201965c466c72be45218155 (diff)
downloadupstream-6a50bf433ad158a08b50bfcff7ff7b0230a998ea.tar.gz
upstream-6a50bf433ad158a08b50bfcff7ff7b0230a998ea.tar.bz2
upstream-6a50bf433ad158a08b50bfcff7ff7b0230a998ea.zip
udhcpc: run dhcp hotplug events after dns has been set
SVN-Revision: 15095
Diffstat (limited to 'package/base-files/files/usr/share')
-rwxr-xr-xpackage/base-files/files/usr/share/udhcpc/default.script14
1 files changed, 7 insertions, 7 deletions
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
;;