Merge r15903 to 8.09
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 17 May 2009 17:57:31 +0000 (17:57 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 17 May 2009 17:57:31 +0000 (17:57 +0000)
SVN-Revision: 15904

package/base-files/files/usr/share/udhcpc/default.script

index b22cc8b04df9dfa59597be49f3d839e8420c5d66..f629c745f4eebee7ea7c99deb266a14eea149e99 100755 (executable)
@@ -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