source: trunk/packages/xen-3.1/xen-3.1/tools/examples/vtpm-hotplug-common.sh @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

File size: 1.0 KB
Line 
1#
2# Copyright (c) 2005 IBM Corporation
3# Copyright (c) 2005 XenSource Ltd.
4#
5# This library is free software; you can redistribute it and/or
6# modify it under the terms of version 2.1 of the GNU Lesser General Public
7# License as published by the Free Software Foundation.
8#
9# This library is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12# Lesser General Public License for more details.
13#
14# You should have received a copy of the GNU Lesser General Public
15# License along with this library; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17#
18
19dir=$(dirname "$0")
20. "$dir/xen-hotplug-common.sh"
21
22findCommand "$@"
23if [ "$command" != "online" ]  &&
24   [ "$command" != "offline" ] &&
25   [ "$command" != "add" ]     &&
26   [ "$command" != "remove" ]
27then
28        log err "Invalid command: $command"
29        exit 1
30fi
31
32
33XENBUS_PATH="${XENBUS_PATH:?}"
34
35. "$dir/vtpm-common.sh"
Note: See TracBrowser for help on using the repository browser.