equal
deleted
inserted
replaced
1 #! /bin/bash |
1 #! /bin/bash |
|
2 # status: in development |
|
3 # $Id$ |
|
4 # $URL$ |
|
5 # Heiko Schlittermann |
2 |
6 |
3 action="${1?}"; shift |
7 action="${1?}"; shift |
4 vm="$1"; shift |
8 vm="$1"; shift |
5 |
9 |
|
10 DIR=/kvm |
6 # no user service able parts below |
11 # no user service able parts below |
7 |
12 |
8 unset ${!LC_*} LANG |
13 unset ${!LC_*} LANG |
9 unset CDPATH |
14 unset CDPATH |
10 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
15 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
11 set +m # switch off job control |
16 set +m # switch off job control |
12 |
17 |
13 DIR=$(dirname $0) |
|
14 ME=$(basename $0) |
18 ME=$(basename $0) |
15 |
|
16 KVM=$(command -v kvm) |
19 KVM=$(command -v kvm) |
17 NC=$(command -v nc) |
20 NC=$(command -v nc) |
18 FUSER=$(command -v fuser) |
21 FUSER=$(command -v fuser) |
19 VNCVIEWER=$(command -v vncviewer) |
22 VNCVIEWER=$(command -v vncviewer) |
20 |
23 |