diff options
-rw-r--r-- | ship/lib/core | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ship/lib/core b/ship/lib/core index 1ef1fbf9..d1a7333e 100644 --- a/ship/lib/core +++ b/ship/lib/core @@ -7,7 +7,9 @@ exists(){ type "$1" >/dev/null 2>/dev/null; } is_root(){ test $(id -u) -eq 0 } - +internet(){ + ping -w 1 google.de >/dev/null 2>&1 +} defer(){ #close enough trapstr="$1;${trapstr:-exit}" |