mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-24 02:01:08 +00:00
Bruno Fontes
2964dc1404
Again, I don't need to keep track of the changes. Just a matter of having them here.
12 lines
285 B
Bash
Executable File
12 lines
285 B
Bash
Executable File
#/bin/sh
|
|
|
|
sleep 10s
|
|
wifi=$(iwconfig 2>/dev/null | grep Quasimodo)
|
|
if [[ -z $wifi ]]; then
|
|
echo "Starting OPEN VPN"
|
|
/usr/bin/systemctl restart openvpn-client@archerc6.service
|
|
else
|
|
echo "At home, no VPN for you"
|
|
/usr/bin/systemctl stop openvpn-client@archerc6.service
|
|
fi
|