start hbc only after we hav a network connection

This commit is contained in:
2022-01-22 08:36:45 -05:00
parent e911fc4420
commit be5858428c
+6
View File
@@ -3,5 +3,11 @@
D=$(dirname $0)
pkill -f $D/hbc 2>/dev/null
sleep 1
while true; do
ping -qAW 6 -c 2 1.1.1.1
if [ $? -eq 0 ]; then
break
fi
done
$D/hbc $@