summaryrefslogtreecommitdiff
path: root/testing/scripts/kstart-umls
diff options
context:
space:
mode:
authorRene Mayrhofer <rene@mayrhofer.eu.org>2007-01-28 20:57:54 +0000
committerRene Mayrhofer <rene@mayrhofer.eu.org>2007-01-28 20:57:54 +0000
commit808cf8b3174aa7ad0833ea69cb55753d21318c9c (patch)
treef616989731c65ab1b6361b3ae5fff5ffed2e0c0a /testing/scripts/kstart-umls
parent58d26e02cd8686e177eebb9fb81e6b17798bbb30 (diff)
downloadvyos-strongswan-808cf8b3174aa7ad0833ea69cb55753d21318c9c.tar.gz
vyos-strongswan-808cf8b3174aa7ad0833ea69cb55753d21318c9c.zip
[svn-upgrade] Integrating new upstream version, strongswan (2.8.1)
Diffstat (limited to 'testing/scripts/kstart-umls')
-rwxr-xr-xtesting/scripts/kstart-umls18
1 files changed, 13 insertions, 5 deletions
diff --git a/testing/scripts/kstart-umls b/testing/scripts/kstart-umls
index a533fb728..21baee52c 100755
--- a/testing/scripts/kstart-umls
+++ b/testing/scripts/kstart-umls
@@ -14,7 +14,7 @@
# 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 $
+# RCSID $Id: kstart-umls,v 1.7 2007/01/11 20:32:01 as Exp $
DIR=`dirname $0`
@@ -35,6 +35,12 @@ BOOTING_HOSTS=""
count_max=12
count=0
+#position of konsole window on the desktop
+x0=8
+y0=8
+dx=12
+dy=24
+
for host in $HOSTS
do
up=0
@@ -57,13 +63,16 @@ do
[ -f $UMLHOSTFS ] || die "!! uml root file system '$UMLHOSTFS' not found"
cecho-n " * Starting ${host}.."
- eval konsole -title ${host} -e "$UMLKERNEL \
+ eval konsole -title ${host} --geometry "+${x0}+${y0}" -e "$UMLKERNEL \
umid=${host} \
ubda=$UMLHOSTFS \
\$SWITCH_${host} \
mem=${MEM}M con=pty con0=fd:0,fd:1" &
cecho "done"
fi
+ let "x0+=dx"
+ let "y0+=dy"
+ sleep 15
done
if [ -z "$BOOTING_HOSTS" ]
@@ -90,14 +99,13 @@ do
exit 1
fi
- pid=`cat ~/.uml/$host/pid`
- up=`ps up $pid | grep agetty | wc -l`
+ up=`uml_mconsole $host proc net/route 2> /dev/null | grep eth0 | wc -l`
while [ $count -lt $count_max ] && [ $up -eq 0 ]
do
cecho-n "."
sleep 5
- up=`ps up $pid | grep agetty | wc -l`
+ up=`uml_mconsole $host proc net/route 2> /dev/null | grep eth0 | wc -l`
let "count+=1"
done