|
|
@ -40,7 +40,11 @@ searchdomains=$(
|
|
|
|
|
|
|
|
|
|
|
|
[ -z "$nameservers" ] && exit 0
|
|
|
|
[ -z "$nameservers" ] && exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -L /etc/resolv.conf ]; then
|
|
|
|
|
|
|
|
unlink /etc/resolv.conf
|
|
|
|
|
|
|
|
else
|
|
|
|
echo -n '' > /etc/resolv.conf
|
|
|
|
echo -n '' > /etc/resolv.conf
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
for nameserver in $nameservers; do
|
|
|
|
for nameserver in $nameservers; do
|
|
|
|
echo nameserver $nameserver >> /etc/resolv.conf
|
|
|
|
echo nameserver $nameserver >> /etc/resolv.conf
|
|
|
|