diff options
author | jlam <jlam> | 2002-01-12 00:22:40 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-01-12 00:22:40 +0000 |
commit | 29ac972748da92522ab73836c76a49306850de76 (patch) | |
tree | 84bc8023ddc34e9a9186c4553b223c241f739e6f /net/samba20 | |
parent | 625e388b10436384a0e0425b61aadd35b3a4de30 (diff) | |
download | pkgsrc-29ac972748da92522ab73836c76a49306850de76.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 } |