mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 00:50:29 +00:00
Added check for openvpn-client svc stop/start
This commit is contained in:
parent
1b33935c01
commit
17d62acdd6
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue