houxiao
2017-03-31 322c729c9fa89a4b91c1eb22c9611758a6fa7b76
bugfix

git-svn-id: http://192.168.1.226/svn/proxy@287 454eff88-639b-444f-9e54-f578c98de674
1个文件已修改
24 ■■■■ 已修改文件
ProxyConsole/auto-net-ip.sh 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ProxyConsole/auto-net-ip.sh
@@ -1,12 +1,12 @@
#!/bin/sh
#crontab:
#*/2 * * * * /bin/sh /opt/auto-net-ip.sh > /dev/null 2>&1
HAS_NET=`ifconfig | grep enp1s0 | grep 172.16`
if [ -z "$HAS_NET" ]; then
    echo "set ip address"
    ifconfig enp1s0 172.16.23.10/16
    ifconfig enp2s0 192.168.1.100/24
fi
#!/bin/sh
#crontab:
#*/2 * * * * /bin/sh /opt/auto-net-ip.sh > /dev/null 2>&1
HAS_NET=`ifconfig | grep enp1s0 | grep 172.16`
if [ -z "$HAS_NET" ]; then
    echo "set ip address"
    ifconfig enp1s0 172.16.23.10/16
    ifconfig enp2s0 192.168.1.100/24
fi