9 lines
186 B
Bash
Executable file
9 lines
186 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if $(nmcli -g GENERAL.STATE c s HomeVPN|grep -q '\bactiv'); then
|
|
echo "going down"
|
|
nmcli connection down HomeVPN
|
|
else
|
|
echo "going up"
|
|
nmcli connection up HomeVPN
|
|
fi
|