|
|
@ -354,6 +354,14 @@ function miaou_resolver() { |
|
|
|
echo "miaou-resolver in NetworkManager dispatcher already initialized!" |
|
|
|
fi |
|
|
|
else |
|
|
|
if sudo systemctl is-enabled systemd-resolved.service --quiet; then |
|
|
|
echo -n "disabling systemd-resolved..." |
|
|
|
sudo systemctl stop systemd-resolved.service --quiet |
|
|
|
sudo systemctl disable systemd-resolved.service --quiet |
|
|
|
sudo rm /etc/resolv.conf |
|
|
|
PREFIX="" echoinfo DONE |
|
|
|
fi |
|
|
|
|
|
|
|
if ! grep -q "nameserver $bridge" /etc/resolv.conf; then |
|
|
|
echo -n "customize resolv.conf from scratch with bridge=<$bridge>, gatewary=<$gateway> ..." |
|
|
|
sudo tee /etc/resolv.conf &>/dev/null <<EOF |
|
|
|