Availability check with reboot in case of driver failure.
sudo -i crontab -e add */1 * * * * path/test_eth.sh
test_eth.sh:
#!/bin/bash if ping -c 4 interface_IP >> /dev/null then exit 0 else /sbin/shutdown -r now fi
Availability check with reboot in case of driver failure.
sudo -i crontab -e
add
*/1 * * * * path/test_eth.sh
test_eth.sh:
#!/bin/bash
if ping -c 4 interface_IP >> /dev/null
then exit 0
else
/sbin/shutdown -r now
fi