diff options
Diffstat (limited to 'mk/xen-vcpu-hotplug.rules')
-rw-r--r-- | mk/xen-vcpu-hotplug.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/xen-vcpu-hotplug.rules b/mk/xen-vcpu-hotplug.rules index ecb200e..a28f895 100644 --- a/mk/xen-vcpu-hotplug.rules +++ b/mk/xen-vcpu-hotplug.rules @@ -1 +1 @@ -ACTION=="add", SUBSYSTEM=="cpu", RUN+="/bin/sh -c '[ ! -e /sys$devpath/online ] || echo 1 > /sys$devpath/online'" +ACTION=="add", SUBSYSTEM=="cpu", RUN+="/bin/sh -c '( ! /usr/bin/xenstore-exists unique-domain-id 2>/dev/null ) || [ ! -e /sys$devpath/online ] || echo 1 > /sys$devpath/online'" |