[package] base-files: fixup resolv.conf check in udhcpc script
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 17 May 2009 17:56:26 +0000 (17:56 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 17 May 2009 17:56:26 +0000 (17:56 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15903 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index b22cc8b..f629c74 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
This page took 0.028155 seconds and 4 git commands to generate.