aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox-initscripts/default.script
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-03-26 17:57:49 +0200
committerTimo Teräs <timo.teras@iki.fi>2014-03-26 17:57:49 +0200
commitf7ec72d86e29789c1363774aa5986b0c016599d4 (patch)
tree7a989bbf462c9910583b4abc360d065cbed104e2 /main/busybox-initscripts/default.script
parentcb3ef8b314ad677075a1636e26f36285feec5999 (diff)
downloadaports-f7ec72d86e29789c1363774aa5986b0c016599d4.tar.bz2
aports-f7ec72d86e29789c1363774aa5986b0c016599d4.tar.xz
main/busybox-initscripts: support 'peer-dns' in udhcpc hook
fixes #2781
Diffstat (limited to 'main/busybox-initscripts/default.script')
-rw-r--r--main/busybox-initscripts/default.script1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/busybox-initscripts/default.script b/main/busybox-initscripts/default.script
index 1231ea9c9f..b638251b52 100644
--- a/main/busybox-initscripts/default.script
+++ b/main/busybox-initscripts/default.script
@@ -72,6 +72,7 @@ routes() {
resolvconf() {
local i
+ [ -n "$IF_PEER_DNS" ] && [ "$IF_PEER_DNS" != "yes" ] && return
if [ "$RESOLV_CONF" = "no" ] || [ "$RESOLV_CONF" = "NO" ] \
|| [ -z "$RESOLV_CONF" ]; then
return