Update 2023-02-22 08:31 OpenBSD/amd64

This commit is contained in:
c0dev0id
2023-02-22 08:31:38 +01:00
parent 1d3ee78382
commit 75fab8053a
85 changed files with 3073 additions and 18 deletions

13
.bin/hostwatch Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
while true
do
_o=$_h
ping -qn -w1 -c1 $1 > /dev/null 2>&1
_h=$?
if [ x"$_o" != x"$_h" ];
then
[ $_h -eq 0 ] && echo "Host is up"
[ $_h -eq 1 ] && echo "Host is down"
fi
sleep 2
done