diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-17 17:56:26 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-17 17:56:26 +0000 |
commit | 8dc987885f6ce2b97052ff5a937f710025241602 (patch) | |
tree | ce8497ffb34b300869ae5d7ef32e2c3aed084c67 /package/base-files/files/usr/share/udhcpc | |
parent | d5444d680472d3952ab9bbab0034462fc4878502 (diff) | |
download | upstream-8dc987885f6ce2b97052ff5a937f710025241602.tar.gz upstream-8dc987885f6ce2b97052ff5a937f710025241602.tar.bz2 upstream-8dc987885f6ce2b97052ff5a937f710025241602.zip |
[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')
-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 |