ia64/xen-unstable

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tools/hotplug/Linux/vtpm-hotplug-common.sh	Tue Nov 04 12:13:42 2008 +0000
     1.3 @@ -0,0 +1,35 @@
     1.4 +#
     1.5 +# Copyright (c) 2005 IBM Corporation
     1.6 +# Copyright (c) 2005 XenSource Ltd.
     1.7 +#
     1.8 +# This library is free software; you can redistribute it and/or
     1.9 +# modify it under the terms of version 2.1 of the GNU Lesser General Public
    1.10 +# License as published by the Free Software Foundation.
    1.11 +#
    1.12 +# This library is distributed in the hope that it will be useful,
    1.13 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.14 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.15 +# Lesser General Public License for more details.
    1.16 +#
    1.17 +# You should have received a copy of the GNU Lesser General Public
    1.18 +# License along with this library; if not, write to the Free Software
    1.19 +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.20 +#
    1.21 +
    1.22 +dir=$(dirname "$0")
    1.23 +. "$dir/xen-hotplug-common.sh"
    1.24 +
    1.25 +findCommand "$@"
    1.26 +if [ "$command" != "online" ]  &&
    1.27 +   [ "$command" != "offline" ] &&
    1.28 +   [ "$command" != "add" ]     &&
    1.29 +   [ "$command" != "remove" ]
    1.30 +then
    1.31 +	log err "Invalid command: $command"
    1.32 +	exit 1
    1.33 +fi
    1.34 +
    1.35 +
    1.36 +XENBUS_PATH="${XENBUS_PATH:?}"
    1.37 +
    1.38 +. "$dir/vtpm-common.sh"