use systemd
This commit is contained in:
parent
5584914fde
commit
8892be1736
|
@ -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"
|
||||
|
|
|
@ -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..."
|
||||
|
|
Loading…
Reference in New Issue