diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-05-17 17:56:26 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-05-17 17:56:26 +0000 |
commit | 983acddc6085293f65ba7e4cdde39fd84d56d3c2 (patch) | |
tree | ce8497ffb34b300869ae5d7ef32e2c3aed084c67 /package/base-files/files/usr/share/udhcpc/default.script | |
parent | 81f76c5079e5eaa2cc1b2d29cc51236f2106e50f (diff) |
[package] base-files: fixup resolv.conf check in udhcpc script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15903 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/usr/share/udhcpc/default.script')
-rwxr-xr-x | package/base-files/files/usr/share/udhcpc/default.script | 2 |
1 files changed, 1 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 b22cc8b04d..f629c745f4 100755 --- a/package/base-files/files/usr/share/udhcpc/default.script +++ b/package/base-files/files/usr/share/udhcpc/default.script @@ -68,7 +68,7 @@ setup_interface () { user_dns=$(uci_get "network.$ifc.dns") [ -n "$user_dns" ] && dns="$user_dns" - [ -n "$dns" ] && [ ! -s "${RESOLV_CONF}.tmp" -o "$dns" != "$old_dns" ] && { + [ -n "$dns" ] && [ ! -s "${RESOLV_CONF}" -o "$dns" != "$old_dns" ] && { echo "udhcpc: setting dns servers: $dns" echo -n > "${RESOLV_CONF}.tmp" for i in $dns ; do |