From dccbb3f6b6ff410f251164b29444a7890b4c44d5 Mon Sep 17 00:00:00 2001
From: Jondy Zhao <jondy.zhao@gmail.com>
Date: Fri, 19 Jul 2013 08:30:07 +0800
Subject: [PATCH] slapos-config: change the first ipv4 address of re6stnet-lo

---
 windows/scripts/slapos-configure.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/windows/scripts/slapos-configure.sh b/windows/scripts/slapos-configure.sh
index b00a844..ca48e29 100755
--- a/windows/scripts/slapos-configure.sh
+++ b/windows/scripts/slapos-configure.sh
@@ -159,7 +159,7 @@ if ! netsh interface ipv6 show interface | grep -q "\\b$slapos_ifname\\b" ; then
     echo Installing slapos network adapter ...
     ipwin install $WINDIR\\inf\\netloop.inf *msloop re6stnet-lo
 fi
-ip -4 addr add $ipv4_local_network dev $slapos_ifname
+ip -4 addr add $(echo ${ipv4_local_network} | sed -e "s%\.0/%.1/%g") dev $slapos_ifname
 # reset_connection $slapos_ifname
 echo
 echo Configure slapos network OK.
-- 
2.30.9