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/bashsleep 100ip route ls table all|grep -q via && reboot ||echo "lost"
sudo chmod +x test_route.sh