summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rwxr-xr-xroot/usr/bin/changedns2
1 files changed, 1 insertions, 1 deletions
diff --git a/root/usr/bin/changedns b/root/usr/bin/changedns
index 8270e86..5059d08 100755
--- a/root/usr/bin/changedns
+++ b/root/usr/bin/changedns
@@ -12,13 +12,13 @@ usage ( ) {
12 12
13 13
14[ "$#" -le 1 ] && usage 14[ "$#" -le 1 ] && usage
15 15
16shift 16shift
17 17
18cp /etc/resolv.conf $tmpfile 18[ -f /etc/resolv.conf ] && cp /etc/resolv.conf $tmpfile
19 19
20case "$arg1" in 20case "$arg1" in
21 "-a") 21 "-a")
22 for ip in "$@"; do 22 for ip in "$@"; do
23 echo $ip 23 echo $ip
24 grep -sq "^nameserver $ip\$" $tmpfile || echo "nameserver $ip" >>$tmpfile 24 grep -sq "^nameserver $ip\$" $tmpfile || echo "nameserver $ip" >>$tmpfile