aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
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
commit78b2e3f95095a5c4bd09b5b2642e5b16c47f697c (patch)
tree4eb50c25eb8e69803fb8f4ccb84428ca7103862a /package/base-files
parent94f59cdab7d6b5ffff53151d887873a3e8680cad (diff)
downloadupstream-78b2e3f95095a5c4bd09b5b2642e5b16c47f697c.tar.gz
upstream-78b2e3f95095a5c4bd09b5b2642e5b16c47f697c.tar.bz2
upstream-78b2e3f95095a5c4bd09b5b2642e5b16c47f697c.zip
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
Diffstat (limited to 'package/base-files')
-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
;;