diff options
author | Jeremy Hansen <jebrhansen+github@gmail.com> | 2020-02-14 18:15:55 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-02-15 08:43:26 +0700 |
commit | e85d903dacd022ab20a26ca3e9ae12b0aa26e8c8 (patch) | |
tree | 889230ca0cb8c9182bb0ac204e9cd12b6e3a943e | |
parent | 230f5bdcda46c1fc0b3336ed9af602b28f680d8a (diff) |
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-conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/network/openresolv/update-resolv-conf b/network/openresolv/update-resolv-conf index 3c95f84531b7..a20260576ee0 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" |