aboutsummaryrefslogtreecommitdiff
path: root/scripts/util/croc.sh
diff options
context:
space:
mode:
authorben <ben@nagy.contact>2025-01-10 11:14:29 -0800
committerben <ben@nagy.contact>2025-01-10 11:14:29 -0800
commitfb4f206e21cc2853e904e8e548b3d4450b208c8d (patch)
tree92044e436174b598bbb831473412ee4382a05396 /scripts/util/croc.sh
parent7339a5dae5f48ba37d44094f8aaa9915695f86e5 (diff)
added scriptsmain
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