ip route ls table all|grep default|grep via
rc.local修改 添加 sudo vim /etc/init.d/rc.local
cd /home/zzx/
./test_route.sh &
#!/bin/bash
sleep 100
ip route ls table all|grep -q via && reboot ||echo "lost"
sudo chmod +x test_route.sh
ip route ls table all|grep default|grep via
rc.local修改 添加 sudo vim /etc/init.d/rc.local
cd /home/zzx/
./test_route.sh &
#!/bin/bash
sleep 100
ip route ls table all|grep -q via && reboot ||echo "lost"
sudo chmod +x test_route.sh