diff options
author | jym <jym@pkgsrc.org> | 2012-07-16 22:55:25 +0000 |
---|---|---|
committer | jym <jym@pkgsrc.org> | 2012-07-16 22:55:25 +0000 |
commit | 54bfdba8358e36917555d1bf01a07a848ffafd15 (patch) | |
tree | cee51c6f1d8b0304f3d3bf946b2e402f95d3eed4 /sysutils/xentools3 | |
parent | 4d9f2167bcb6e73b633e6aff5d4358223f81489f (diff) | |
download | pkgsrc-54bfdba8358e36917555d1bf01a07a848ffafd15.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/xentools3')
-rw-r--r-- | sysutils/xentools3/Makefile | 4 | ||||
-rw-r--r-- | sysutils/xentools3/files/xendomains.sh | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/sysutils/xentools3/Makefile b/sysutils/xentools3/Makefile index 01baef74805..c70f0ba2384 100644 --- a/sysutils/xentools3/Makefile +++ b/sysutils/xentools3/Makefile @@ -1,10 +1,10 @@ -# $NetBSD: Makefile,v 1.26 2012/03/09 12:34:22 wiz Exp $ +# $NetBSD: Makefile,v 1.27 2012/07/16 22:55:25 jym Exp $ # VERSION= 3.1.4 DISTNAME= xen-${VERSION} PKGNAME= xentools3-${VERSION} -PKGREVISION= 9 +PKGREVISION= 10 CATEGORIES= sysutils MASTER_SITES= http://bits.xensource.com/oss-xen/release/${VERSION}/ EXTRACT_SUFX= .tar.gz diff --git a/sysutils/xentools3/files/xendomains.sh b/sysutils/xentools3/files/xendomains.sh index 7af5aa72c3b..8108d8b8a33 100644 --- a/sysutils/xentools3/files/xendomains.sh +++ b/sysutils/xentools3/files/xendomains.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: xendomains.sh,v 1.1.1.1 2007/06/14 19:39:45 bouyer 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 |