From: Jo-Philipp Wich Date: Sun, 17 May 2009 17:56:26 +0000 (+0000) Subject: base-files: fixup resolv.conf check in udhcpc script X-Git-Tag: reboot~23534 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2ee67f727242ec1a74a418df3578ec6c1ab3b833;p=oweals%2Fopenwrt.git base-files: fixup resolv.conf check in udhcpc script SVN-Revision: 15903 --- 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