Update mm-scripts.sh

This commit is contained in:
2023-02-25 19:16:47 -06:00
parent f2a29f1d57
commit 0ed0bc3d90

View File

@@ -154,7 +154,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/wg-torguard.conf
# if [ "${zerogw}" != "${defaultgw}" ]; then
if [ "${defaultgw}" != "wg-torguard" ]; then
echo "$(date) - Adding VPN default routes" >> $logfile
echo -en "${idsCL[LightCyan]}Adding VPN default routes :${idsCL[Default]}"
echo -en "${idsCL[LightCyan]}Adding VPN default routes :${idsCL[Default]}"
/bin/ip route del default
/bin/ip route add default dev wg-torguard
/bin/ip route add 0.0.0.0/1 dev wg-torguard
@@ -275,7 +275,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/wg-torguard.conf
[ "${1}" == "start" ] && rm -f ${MMFOLDER}/mm.noservices
if [ "${2}" != "vpn" ] && [ ! -f ${MMFOLDER}/mm.noservices ]; then
echo -en "${idsCL[LightCyan]}${mmsv} Services :${idsCL[Default]}"
echo -en "${idsCL[LightCyan]}${mmsv} Services :${idsCL[Default]}"
for srvc in "${SERVICES_CHECK[@]}"; do
/bin/systemctl start ${srvc}
done