]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
hotplug/NetBSD: write error message to hotplug-error
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 31 Aug 2012 09:42:06 +0000 (10:42 +0100)
committerRoger Pau Monne <roger.pau@citrix.com>
Fri, 31 Aug 2012 09:42:06 +0000 (10:42 +0100)
As recommended by Ian Campbell, write the hotplug error to
hotplug-error, just as the Linux hotplug script does.

Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/hotplug/NetBSD/block

index 28135f516882cfb283b6f07c722c4b6f11438475..2c10ed70ab5ed48103a865bb413bb48e0ee91fe8 100644 (file)
@@ -12,7 +12,8 @@ export PATH
 
 error() {
        echo "$@" >&2
-       xenstore-write $xpath/hotplug-status error
+       xenstore-write $xpath/hotplug-status error \
+                      $xpath/hotplug-error "$@"
        exit 1
 }