From 109ffe9a777658936a38d0c146579a67c60a0d17 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 11 五月 2017 17:48:48 +0800
Subject: [PATCH] 

---
 ProxyConsole/auto-net-ip.sh |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/ProxyConsole/auto-net-ip.sh b/ProxyConsole/auto-net-ip.sh
index 62b7570..6d2d819 100644
--- a/ProxyConsole/auto-net-ip.sh
+++ b/ProxyConsole/auto-net-ip.sh
@@ -1,11 +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
-fi
+#!/bin/sh
+
+#crontab:
+#*/2 * * * * /bin/sh /opt/auto-net-ip.sh > /dev/null 2>&1
+
+HAS_NET=`ifconfig | grep enp1s0 -A 1 | grep 172.16`
+
+if [ -z "$HAS_NET" ]; then
+	echo "set ip address"
+	ifconfig enp1s0 172.16.24.10/16
+	ifconfig enp2s0 192.168.1.100/24
+fi

--
Gitblit v1.8.0