take down eth1 interface on alice via ssh
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 29 Feb 2008 17:00:07 +0000 (17:00 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 29 Feb 2008 17:00:07 +0000 (17:00 -0000)
testing/scripts/kstart-umls
testing/scripts/start-umls
testing/scripts/xstart-umls

index 79a9055..7d53b9a 100755 (executable)
@@ -120,7 +120,7 @@ do
     if [ "$host" = "alice" ]
     then
        eval ipv4_${host}="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`"
-       ssh $ipv4_alice /etc/init.d/net.eth1 stop
+       ssh root@$ipv4_alice /etc/init.d/net.eth1 stop
     fi
 done
 
index 143d53b..018bad0 100755 (executable)
@@ -107,6 +107,12 @@ do
     else
        cgecho "up"
     fi
+
+    if [ "$host" = "alice" ]
+    then
+       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
 
 cecho " * All uml instances are up now"
index 86090bc..8f9b6f4 100755 (executable)
@@ -116,6 +116,12 @@ do
     else
        cgecho "up"
     fi
+
+    if [ "$host" = "alice" ]
+    then
+       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
 
 cecho " * All uml instances are up now"