diff options
Diffstat (limited to 'setup-dns')
-rwxr-xr-x | setup-dns | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/setup-dns b/setup-dns deleted file mode 100755 index fd6b04e..0000000 --- a/setup-dns +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -PREFIX= -. "$PREFIX/lib/libalpine.sh" - -conf="$ROOT/etc/resolv.conf" -if [ -f "$conf" ] ; then - domain=`awk '/^domain/ {print $2}' $conf` - dns=`awk '/^nameserver/ {print $2}' $conf` -fi - -echon "DNS domain name? (e.g 'bar.com') [$domain] " -default_read domain $domain -echon "DNS nameserver(s)? [" -for i in $dns ; do - echon "$i " -done -echon "] " -default_read dns "$dns" - -echo "search $domain" > $conf -for i in $dns ; do - echo "nameserver $i" >> $conf -done - |