summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-05-17 17:56:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-05-17 17:56:26 +0000
commit2ee67f727242ec1a74a418df3578ec6c1ab3b833 (patch)
treec1e570b2e4fe58f4aa39efd7fe9a268ae7fb59e5
parent459edb94dca6e2d6e170aa4679da39e0dca5c2a9 (diff)
downloadmtk-20170518-2ee67f727242ec1a74a418df3578ec6c1ab3b833.zip
mtk-20170518-2ee67f727242ec1a74a418df3578ec6c1ab3b833.tar.gz
mtk-20170518-2ee67f727242ec1a74a418df3578ec6c1ab3b833.tar.bz2
base-files: fixup resolv.conf check in udhcpc script
SVN-Revision: 15903
-rwxr-xr-xpackage/base-files/files/usr/share/udhcpc/default.script2
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 b22cc8b..f629c74 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