Unlink systemd-resolved symlink /etc/resolv.conf

pull/100/head
Vlastimil Holer 7 years ago
parent 3a44763638
commit 7dad8bcba4
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -40,7 +40,11 @@ searchdomains=$(
[ -z "$nameservers" ] && exit 0 [ -z "$nameservers" ] && exit 0
echo -n '' > /etc/resolv.conf if [ -L /etc/resolv.conf ]; then
unlink /etc/resolv.conf
else
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

Loading…
Cancel
Save