diff options
Diffstat (limited to 'sysutils/xentools20/files/xend.sh')
-rw-r--r-- | sysutils/xentools20/files/xend.sh | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sysutils/xentools20/files/xend.sh b/sysutils/xentools20/files/xend.sh index f36bfc2f832..27be32ff7a0 100644 --- a/sysutils/xentools20/files/xend.sh +++ b/sysutils/xentools20/files/xend.sh @@ -1,12 +1,11 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: xend.sh,v 1.2 2005/04/01 19:06:12 bouyer Exp $ +# $NetBSD: xend.sh,v 1.3 2005/05/24 16:02:08 xtraeme Exp $ # # PROVIDE: xend # REQUIRE: disks network -if [ -f /etc/rc.subr ] -then +if [ -f /etc/rc.subr ]; then . /etc/rc.subr fi @@ -14,7 +13,16 @@ name="xend" rcvar=$name command="@PREFIX@/sbin/xend" command_interpreter="@RCD_INTERPRETER@" -start_cmd="echo starting ${name}. && ${command} start" +start_cmd="@ECHO@ Starting ${name}. && ${command} start" +start_precmd="test_kern_privcmd" + +test_kern_privcmd() +{ + if [ ! -f /kern/xen/privcmd ]; then + @ECHO@ "${name}: Cannot find /kern/xen/privcmd!" + exit 1 + fi +} load_rc_config $name run_rc_command "$1" |