ia64/xen-unstable

view tools/check/check_hotplug @ 7052:7b97bc1d1c1d

Add an install-time check for hotplug.

The hotplug subsystem is currently needed for block devices to work, as
of changeset 6742:e9d01c5dc7b4d6b7cda9ade0d137ddb89bb204cc. Add a
script to check for the presence of hotplug and warn if it isn't found.

Signed-off-by: Michael Vrable <mvrable@cs.ucsd.edu>
author kaf24@firebug.cl.cam.ac.uk
date Fri Sep 23 20:09:59 2005 +0100 (2005-09-23)
parents
children a2d613c125a5
line source
1 #!/bin/bash
2 # CHECK-INSTALL
4 function error {
5 echo
6 echo ' *** Check for the hotplug scripts (hotplug) FAILED'
7 exit 1
8 }
10 which hotplug 1>/dev/null 2>&1 || error