ia64/xen-unstable

annotate tools/hotplug/Linux/vtpm-hotplug-common.sh @ 18770:4bfc67b09e9c

tools/hotplug: Separate OS-specific scripts.

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