aboutsummaryrefslogtreecommitdiff
path: root/.scripts/hasnet
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/hasnet')
-rwxr-xr-x.scripts/hasnet3
1 files changed, 3 insertions, 0 deletions
diff --git a/.scripts/hasnet b/.scripts/hasnet
new file mode 100755
index 0000000..5acd1be
--- /dev/null
+++ b/.scripts/hasnet
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` >/dev/null