From 17d62acdd6fc09351e44647831c061a730227759 Mon Sep 17 00:00:00 2001 From: billz Date: Sat, 28 Mar 2020 11:09:06 +0000 Subject: [PATCH] Added check for openvpn-client svc stop/start --- installers/servicestart.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/installers/servicestart.sh b/installers/servicestart.sh index dd70a813..4504e43e 100755 --- a/installers/servicestart.sh +++ b/installers/servicestart.sh @@ -35,7 +35,9 @@ done set -- "${positional[@]}" echo "Stopping network services..." -systemctl stop openvpn-client@client +if [ $OPENVPNENABLED -eq 1 ]; then + systemctl stop openvpn-client@client +fi systemctl stop systemd-networkd systemctl stop hostapd.service systemctl stop dnsmasq.service @@ -75,7 +77,7 @@ if [ -r "$CONFIGFILE" ]; then fi else echo "Disabling systemd-networkd" - systemctl disable systemd-networkd +- systemctl disable systemd-networkd echo "Removing br0 interface..." ip link set down br0