]> git.ipfire.org Git - thirdparty/strongswan.git/blame - testing/stop-testing
Rename build-umlkernel script to build-guestkernel
[thirdparty/strongswan.git] / testing / stop-testing
CommitLineData
997358a6
MW
1#!/bin/bash
2# Stop all UML instances and UML switches
3#
4# Copyright (C) 2004 Eric Marchionni, Patrik Rayo
5# Zuercher Hochschule Winterthur
6#
7# This program is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by the
9# Free Software Foundation; either version 2 of the License, or (at your
10# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11#
12# This program is distributed in the hope that it will be useful, but
13# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15# for more details.
997358a6
MW
16
17DIR=`dirname $0`
18
19source $DIR/scripts/function.sh
20
21[ -f $DIR/testing.conf ] || die "No configuration file testing.conf found."
22
23source $DIR/testing.conf
24
25if [ "$#" -eq 0 ]
26then
27 HOSTS=$STRONGSWANHOSTS
28else
29 HOSTS=$*
30fi
31
32#####################################################
33# Shutting down the uml instances
34#
35cecho-n " * Halting all UML instances.."
36for host in $HOSTS
37do
38 uml_mconsole $host halt &> /dev/null
39done
90b21fde 40cgecho "done"
997358a6
MW
41
42#####################################################
a44bb934 43# Shutting down the uml bridhges
997358a6 44#
a44bb934
MW
45cecho "Stop the uml bridges (scripts/stop-bridges)"
46$DIR/scripts/stop-bridges