mirror of
https://codeberg.org/hyperreal/bin
synced 2024-11-01 16:43:08 +01:00
8 lines
105 B
Bash
Executable File
8 lines
105 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if ping -c 1 "$1"; then
|
|
autossh -M 0 "$1"
|
|
else
|
|
echo "Host not reachable"
|
|
fi
|