take down eth1 interface on alice via ssh

This commit is contained in:
Andreas Steffen
2008-02-29 17:00:07 +00:00
parent 2571708bea
commit 37940132a4
3 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -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
+6
View File
@@ -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"
+6
View File
@@ -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"