summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Jeremy Hansen2020-02-15 02:15:55 +0100
committer Willy Sudiarto Raharjo2020-02-15 02:43:26 +0100
commite85d903dacd022ab20a26ca3e9ae12b0aa26e8c8 (patch)
tree889230ca0cb8c9182bb0ac204e9cd12b6e3a943e
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>
-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"