From 8892be1736d9c4f3b2c93b78e4a9ef1820fedc25 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Tue, 13 Jun 2023 16:18:15 -0600 Subject: [PATCH] use systemd --- bridge/bridge-lan.sh | 2 +- bridge/bridge-reset.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bridge/bridge-lan.sh b/bridge/bridge-lan.sh index f4dc952..ff63b43 100755 --- a/bridge/bridge-lan.sh +++ b/bridge/bridge-lan.sh @@ -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" diff --git a/bridge/bridge-reset.sh b/bridge/bridge-reset.sh index 08255fc..165e272 100755 --- a/bridge/bridge-reset.sh +++ b/bridge/bridge-reset.sh @@ -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..."