check_inet.sh hinzugefügt

This commit is contained in:
2025-03-05 08:01:00 +00:00
parent 96bc06bfbf
commit 417de1d5c4

14
check_inet.sh Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
ping -c4 www.google.com
let a=$?
if [ "$a" != "0" ]; then
/sbin/shutdown -r +1 Connection lost, rebooting...
fi
# ToDo afterwards
# make executable
# chmod +x check_inet.sh
# add in crontab
# */30 * * * * /home/yourname/check_inet.sh