abort if fatal error is received from peer
[strongswan.git] / testing / scripts / kstart-umls
index eeaa959..18dc64a 100755 (executable)
@@ -13,8 +13,6 @@
 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 # for more details.
-#
-# RCSID $Id: kstart-umls,v 1.6 2005/08/30 22:13:12 as Exp $
 
 DIR=`dirname $0`
 
@@ -68,11 +66,11 @@ do
            ubda=$UMLHOSTFS \
            \$SWITCH_${host} \
            mem=${MEM}M con=pty con0=fd:0,fd:1" &
-        cecho "\033[1;32mdone"
+        cgecho "done"
+        sleep 15
     fi
     let "x0+=dx"
     let "y0+=dy"
-    sleep 15
 done
 
 if [ -z "$BOOTING_HOSTS" ]
@@ -114,7 +112,14 @@ do
        cecho "exit"
        exit 1
     else
-       cecho "\033[1;32mup"
+       cgecho "up"
+    fi
+
+    if [ "$host" = "alice" ]
+    then
+       sleep 5
+       eval ipv4_${host}="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`"
+       ssh root@$ipv4_alice /etc/init.d/net.eth1 stop
     fi
 done