[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 7 of 8 v2] Linux/init: check for udev >= 59 at xencommons
# HG changeset patch # User Roger Pau Monne <roger.pau@xxxxxxxxxxxxx> # Date 1329814249 -3600 # Node ID a26c5eadc56fe15af5e40600a3851b4d64be6389 # Parent 417702b27ab78ad554062a065fa3f51af091b3b3 Linux/init: check for udev >= 59 at xencommons Check for udev at xencommons, since hotplug scripts use it. Signed-off-by: Roger Pau Monne <roger.pau@xxxxxxxxxxxxx> diff -r 417702b27ab7 -r a26c5eadc56f tools/hotplug/Linux/init.d/xencommons --- a/tools/hotplug/Linux/init.d/xencommons Tue Feb 21 09:03:32 2012 +0100 +++ b/tools/hotplug/Linux/init.d/xencommons Tue Feb 21 09:50:49 2012 +0100 @@ -70,6 +70,28 @@ do log_warning_msg "$servicename: $tool not found" done +# Check for udev >= 59 +if ! type udevadm > /dev/null 2>&1 +then + if ! type udevinfo > /dev/null 2>&1 + then + log_warning_msg "$servicename: unable to find" \ + " udevadm or udevinfo" + else + udevver=`udevinfo -V | awk '{print $NF}'` + fi +else + udevver=`udevadm info -V | awk '{print $NF}'` +fi +if test -z "${udevver}" || test "${udevver}" -lt 59 +then + if ! type hotplug > /dev/null 2>&1 + then + log_warning_msg "$servicename: udev is too old," \ + " upgrade to version 59" + fi +fi + do_start () { local time=0 local timeout=30 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |