aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2024-06-30 19:31:43 +0800
committerYuchen Pei <id@ypei.org>2024-06-30 19:31:43 +0800
commitcad78064b1cd76fc63b3c115a35e54dc6b91015c (patch)
tree7b1af6aed7d51c6896bc31d4d0ed094f481c476e /misc
parenta04387f9065f87eb7126a031cd36f7fdb9140b1b (diff)
[vpn] updated check-ovpn.sh
Not necessarily tun0
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/bin/check-ovpn.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/bin/check-ovpn.sh b/misc/bin/check-ovpn.sh
index fe5d576..9669190 100755
--- a/misc/bin/check-ovpn.sh
+++ b/misc/bin/check-ovpn.sh
@@ -3,7 +3,7 @@
# Check that the vpn is up. Check every 5 seconds for 11 times - for
# use as a minutely cron task
for i in $(seq 1 11); do
- if ifconfig tun0 | grep -q "00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00"; then
+ if ifconfig | grep -q "00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00"; then
echo YES > ~/.local/ovpn-up
else
rm -f ~/.local/ovpn-up