]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 79a905578f19b6178adf2e75a7e717f399851ca9..7d53b9a9b08558c11fb9322ca4eb654e12f5716c 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 143d53b74c886750a10312202ab0f646a92f1492..018bad0108d4bc9e742117790f4ea037eaf49088 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 86090bc849f070b1b7923f1b075e4579edf9f0e2..8f9b6f49031dc5a90516250cb6c2e859fda250ec 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"