aboutsummaryrefslogtreecommitdiff
path: root/scripts/util/croc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/util/croc.sh')
-rwxr-xr-xscripts/util/croc.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/util/croc.sh b/scripts/util/croc.sh
new file mode 100755
index 0000000..ae7efbd
--- /dev/null
+++ b/scripts/util/croc.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+nmcli c show --active | grep -q "wg-mullvad" 2>>/dev/null && read -p "VPN is active. Contine? [Y/n] " ON || echo "VPN is off, aborting."; break ;
+
+case $ON in
+ [Yy]* ) croc $1;
+esac