diff options
author | jlam <jlam@pkgsrc.org> | 2002-01-12 00:22:40 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-01-12 00:22:40 +0000 |
commit | ee6c26b6b0bcf439ec2280135daa391fc674c19f (patch) | |
tree | 84bc8023ddc34e9a9186c4553b223c241f739e6f /net/samba20 | |
parent | 1f7bfc6d1273c4aab5cb17f7dbdeab0c22274beb (diff) | |
download | pkgsrc-ee6c26b6b0bcf439ec2280135daa391fc674c19f.tar.gz |
Don't hardcode the location of the other rc.d scripts as @RCD_SCRIPTS_DIR@
as they might not be there depending on whether INSTALL_RCD_SCRIPTS is set
in /etc/mk.conf when the package is built. Instead, assume that the other
rc.d scripts are in the same place as this "meta" script and locate them
using "dirname $0". Problem noted by Stoned Elipot <seb@netbsd.org> in
private email.
Diffstat (limited to 'net/samba20')
-rw-r--r-- | net/samba20/files/samba.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/samba20/files/samba.sh b/net/samba20/files/samba.sh index af47afd53e3..9cccc3161d6 100644 --- a/net/samba20/files/samba.sh +++ b/net/samba20/files/samba.sh @@ -1,8 +1,7 @@ #!/bin/sh # -# $NetBSD: samba.sh,v 1.4 2001/11/21 21:38:54 jlam Exp $ +# $NetBSD: samba.sh,v 1.5 2002/01/12 00:22:40 jlam Exp $ # -# PROVIDE: samba # KEYWORD: nostart if [ -e /etc/rc.subr ] @@ -10,12 +9,14 @@ then . /etc/rc.subr fi +rcd_dir=`@DIRNAME@ $0` + # NOTE: run_rc_command sets $_arg # forward_commands() { for file in $COMMAND_LIST; do - /etc/rc.d/$file $_arg + $rcd_dir/$file $_arg done } @@ -26,7 +27,7 @@ reverse_commands() REVCOMMAND_LIST="$file $REVCOMMAND_LIST" done for file in $REVCOMMAND_LIST; do - /etc/rc.d/$file $_arg + $rcd_dir/$file $_arg done } |