summaryrefslogtreecommitdiff
path: root/sysutils/xentools33
diff options
context:
space:
mode:
authorjym <jym>2012-07-16 22:55:25 +0000
committerjym <jym>2012-07-16 22:55:25 +0000
commitc06542ff50b5d3db7bfffd88ac224ed515c69062 (patch)
treecee51c6f1d8b0304f3d3bf946b2e402f95d3eed4 /sysutils/xentools33
parenteaa92788758915ad9d2676d19fe0f1d3e7e3f177 (diff)
downloadpkgsrc-c06542ff50b5d3db7bfffd88ac224ed515c69062.tar.gz
Do not skip domain's creation when a prehook cmd has been executed.
Reported by Brook Milligan on port-xen@.
Diffstat (limited to 'sysutils/xentools33')
-rw-r--r--sysutils/xentools33/Makefile4
-rw-r--r--sysutils/xentools33/files/xendomains.sh8
2 files changed, 7 insertions, 5 deletions
diff --git a/sysutils/xentools33/Makefile b/sysutils/xentools33/Makefile
index 118151cf475..8873d853542 100644
--- a/sysutils/xentools33/Makefile
+++ b/sysutils/xentools33/Makefile
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.32 2012/04/07 14:48:11 bsiegert Exp $
+# $NetBSD: Makefile,v 1.33 2012/07/16 22:55:25 jym Exp $
#
VERSION= 3.3.2
DISTNAME= xen-${VERSION}
PKGNAME= xentools33-${VERSION}
-PKGREVISION= 12
+PKGREVISION= 13
CATEGORIES= sysutils
MASTER_SITES= http://bits.xensource.com/oss-xen/release/${VERSION}/
EXTRACT_SUFX= .tar.gz
diff --git a/sysutils/xentools33/files/xendomains.sh b/sysutils/xentools33/files/xendomains.sh
index 354c98be7da..8108d8b8a33 100644
--- a/sysutils/xentools33/files/xendomains.sh
+++ b/sysutils/xentools33/files/xendomains.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: xendomains.sh,v 1.1.1.1 2008/08/07 20:26:58 cegger Exp $
+# $NetBSD: xendomains.sh,v 1.2 2012/07/16 22:55:25 jym Exp $
#
# PROVIDE: xendomains
# REQUIRE: xenbackendd
@@ -57,8 +57,10 @@ xendomains_start()
cmdline=`printf "${xendomains_prehook}" $domain`
cmd="${cmdline%% *}"
if [ -x "$cmd" ]; then
- $cmdline || echo "Pre-hook \`\`$cmdline'' failed... skipping $domain."
- continue
+ if ! $cmdline; then
+ echo "Pre-hook \`\`$cmdline'' failed... skipping $domain."
+ continue
+ fi
fi
fi