|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 6 of 8 v2] Linux/init: check for brctl and ip at xencommons
# HG changeset patch
# User Roger Pau Monne <roger.pau@xxxxxxxxxxxxx>
# Date 1329811412 -3600
# Node ID 417702b27ab78ad554062a065fa3f51af091b3b3
# Parent a74480347d40266afc2f192aeea21819557a483c
Linux/init: check for brctl and ip at xencommons
Check for brctl and ip at xencommons, since hotplug scripts use it.
Signed-off-by: Roger Pau Monne <roger.pau@xxxxxxxxxxxxx>
diff -r a74480347d40 -r 417702b27ab7 tools/hotplug/Linux/init.d/xencommons
--- a/tools/hotplug/Linux/init.d/xencommons Wed Feb 22 04:15:34 2012 +0100
+++ b/tools/hotplug/Linux/init.d/xencommons Tue Feb 21 09:03:32 2012 +0100
@@ -27,6 +27,8 @@ else
exit 0
fi
+servicename="xencommons"
+
if [ -d /etc/sysconfig ]; then
xencommons_config=/etc/sysconfig
else
@@ -59,6 +61,15 @@ if test -f /proc/xen/capabilities && \
exit 0
fi
+# List of tools needed by xen (hotplug scripts)
+REQ_TOOLS="brctl ip"
+
+for tool in $REQ_TOOLS
+do
+ type $tool > /dev/null 2>&1 || \
+ log_warning_msg "$servicename: $tool not found"
+done
+
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 |