use systemd

This commit is contained in:
Cyberes 2023-06-13 16:18:15 -06:00
parent 5584914fde
commit 8892be1736
Signed by: cyberes
GPG Key ID: 6B4A33836A9500FE
2 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ iptables -t nat -A POSTROUTING -o $ETH_IFACE -j MASQUERADE
echo "Redirected the router's ports to the single bridged client"
echo -en "\nRestarting dnsmasq..."
service systemd-resolved stop
systemctl stop systemd-resolved
# systemctl enable --now dnsmasq
systemctl restart dnsmasq
echo -e "\n"

View File

@ -48,8 +48,8 @@ while true; do
sleep 5
done
service systemd-resolved start
sudo systemctl stop dnsmasq
systemctl start systemd-resolved
systemctl stop dnsmasq
echo "Reset DNS services"
echo -e "\nConnecting to WiFi..."