xuxiuxi
2017-07-24 e90fb8dc455cb0d94c5bd16120427dbfbad7b0b0
ProxyConsole/auto-net-ip.sh
@@ -3,7 +3,7 @@
#crontab:
#*/2 * * * * /bin/sh /opt/auto-net-ip.sh > /dev/null 2>&1
HAS_NET=`ifconfig | grep enp1s0 | grep 172.24`
HAS_NET=`ifconfig | grep enp1s0 -A 1 | grep 172.16`
if [ -z "$HAS_NET" ]; then
   echo "set ip address"