]>
Commit | Line | Data |
---|---|---|
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 | |
17 | DIR=`dirname $0` | |
18 | ||
19 | source $DIR/scripts/function.sh | |
20 | ||
21 | [ -f $DIR/testing.conf ] || die "No configuration file testing.conf found." | |
22 | ||
23 | source $DIR/testing.conf | |
24 | ||
25 | if [ "$#" -eq 0 ] | |
26 | then | |
27 | HOSTS=$STRONGSWANHOSTS | |
28 | else | |
29 | HOSTS=$* | |
30 | fi | |
31 | ||
32 | ##################################################### | |
33 | # Shutting down the uml instances | |
34 | # | |
35 | cecho-n " * Halting all UML instances.." | |
36 | for host in $HOSTS | |
37 | do | |
38 | uml_mconsole $host halt &> /dev/null | |
39 | done | |
90b21fde | 40 | cgecho "done" |
997358a6 MW |
41 | |
42 | ##################################################### | |
a44bb934 | 43 | # Shutting down the uml bridhges |
997358a6 | 44 | # |
a44bb934 MW |
45 | cecho "Stop the uml bridges (scripts/stop-bridges)" |
46 | $DIR/scripts/stop-bridges |