summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorJeremy Hansen <jebrhansen+github@gmail.com>2020-02-14 18:15:55 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-15 08:43:26 +0700
commite85d903dacd022ab20a26ca3e9ae12b0aa26e8c8 (patch)
tree889230ca0cb8c9182bb0ac204e9cd12b6e3a943e /network
parent230f5bdcda46c1fc0b3336ed9af602b28f680d8a (diff)
downloadslackbuilds-e85d903dacd022ab20a26ca3e9ae12b0aa26e8c8.tar.gz
network/openresolv: Fix update-resolv-conf script to remove existing nameservers
Thanks to sinbadway on LQ for the hint and kestralis for the reminder Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/openresolv/update-resolv-conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/network/openresolv/update-resolv-conf b/network/openresolv/update-resolv-conf
index 3c95f84531..a20260576e 100644
--- a/network/openresolv/update-resolv-conf
+++ b/network/openresolv/update-resolv-conf
@@ -45,7 +45,7 @@ up)
R="${R}nameserver $NS
"
done
- echo -n "$R" | /usr/sbin/resolvconf -a "${dev}.inet"
+ echo -n "$R" | /usr/sbin/resolvconf -x -a "${dev}.inet"
;;
down)
/usr/sbin/resolvconf -d "${dev}.inet"