From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roger Pau Monne Subject: [PATCH 2/3] hotplug/NetBSD: write error message to hotplug-error Date: Thu, 23 Aug 2012 17:53:45 +0100 Message-ID: <1345740826-49830-3-git-send-email-roger.pau@citrix.com> References: <1345740826-49830-1-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1345740826-49830-1-git-send-email-roger.pau@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Roger Pau Monne List-Id: xen-devel@lists.xenproject.org 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 --- tools/hotplug/NetBSD/block | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tools/hotplug/NetBSD/block b/tools/hotplug/NetBSD/block index 28135f5..2c10ed7 100644 --- a/tools/hotplug/NetBSD/block +++ b/tools/hotplug/NetBSD/block @@ -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 } -- 1.7.7.5 (Apple Git-26)