diff options
-rw-r--r-- | net/samba/files/samba.sh | 8 | ||||
-rw-r--r-- | sysutils/ups-nut/files/ups.sh | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/net/samba/files/samba.sh b/net/samba/files/samba.sh index ab7e0c4b73b..e7641771a81 100644 --- a/net/samba/files/samba.sh +++ b/net/samba/files/samba.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: samba.sh,v 1.8 2001/11/22 00:58:24 lukem Exp $ +# $NetBSD: samba.sh,v 1.9 2002/01/10 12:01:37 jlam Exp $ # # KEYWORD: nostart @@ -9,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 - @RCD_SCRIPTS_DIR@/$file $_arg + $rcd_dir/$file $_arg done } @@ -25,7 +27,7 @@ reverse_commands() REVCOMMAND_LIST="$file $REVCOMMAND_LIST" done for file in $REVCOMMAND_LIST; do - @RCD_SCRIPTS_DIR@/$file $_arg + $rcd_dir/$file $_arg done } diff --git a/sysutils/ups-nut/files/ups.sh b/sysutils/ups-nut/files/ups.sh index e39a1d7a396..d87cf7df128 100644 --- a/sysutils/ups-nut/files/ups.sh +++ b/sysutils/ups-nut/files/ups.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: ups.sh,v 1.5 2001/11/22 00:55:51 lukem Exp $ +# $NetBSD: ups.sh,v 1.6 2002/01/10 12:01:38 jlam Exp $ # # KEYWORD: nostart @@ -9,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 - @RCD_SCRIPTS_DIR@/$file $_arg + $rcd_dir/$file $_arg done } @@ -25,7 +27,7 @@ reverse_commands() REVCOMMAND_LIST="$file $REVCOMMAND_LIST" done for file in $REVCOMMAND_LIST; do - @RCD_SCRIPTS_DIR@/$file $_arg + $rcd_dir/$file $_arg done } |