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 "Redirected the router's ports to the single bridged client"
|
||||||
|
|
||||||
echo -en "\nRestarting dnsmasq..."
|
echo -en "\nRestarting dnsmasq..."
|
||||||
service systemd-resolved stop
|
systemctl stop systemd-resolved
|
||||||
# systemctl enable --now dnsmasq
|
# systemctl enable --now dnsmasq
|
||||||
systemctl restart dnsmasq
|
systemctl restart dnsmasq
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
|
|
|
@ -48,8 +48,8 @@ while true; do
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
|
|
||||||
service systemd-resolved start
|
systemctl start systemd-resolved
|
||||||
sudo systemctl stop dnsmasq
|
systemctl stop dnsmasq
|
||||||
echo "Reset DNS services"
|
echo "Reset DNS services"
|
||||||
|
|
||||||
echo -e "\nConnecting to WiFi..."
|
echo -e "\nConnecting to WiFi..."
|
||||||
|
|
Loading…
Reference in New Issue