diff options
author | hubertf <hubertf@pkgsrc.org> | 2002-05-24 22:28:27 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2002-05-24 22:28:27 +0000 |
commit | ec689a5257bf6f68b79c481803931fce44315e85 (patch) | |
tree | 6a3555f17daa9c0fa2cff07e95fdd710d407828b /net/samba/files | |
parent | 71968dd999b617ec715452fecb2d47821b061daa (diff) | |
download | pkgsrc-ec689a5257bf6f68b79c481803931fce44315e85.tar.gz |
Backward compat with NetBSD <1.6: some rc.subr variables were renamed.
Make sure the new ones get defined from the old ones.
Diffstat (limited to 'net/samba/files')
-rw-r--r-- | net/samba/files/samba.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/net/samba/files/samba.sh b/net/samba/files/samba.sh index 905aa19a0f6..1f94dc2aa59 100644 --- a/net/samba/files/samba.sh +++ b/net/samba/files/samba.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: samba.sh,v 1.10 2002/02/05 06:04:39 jlam Exp $ +# $NetBSD: samba.sh,v 1.11 2002/05/24 22:28:27 hubertf Exp $ # # KEYWORD: nostart @@ -11,23 +11,29 @@ fi rcd_dir=`@DIRNAME@ $0` -# NOTE: run_rc_command sets $_arg +# NOTE: run_rc_command sets $rc_arg # forward_commands() { + # Backward compat with NetBSD <1.6: + [ -z "$rc_arg" ] && rc_arg=$_arg + for file in $COMMAND_LIST; do - $rcd_dir/$file $_arg + $rcd_dir/$file $rc_arg done } reverse_commands() { + # Backward compat with NetBSD <1.6: + [ -z "$rc_arg" ] && rc_arg=$_arg + REVCOMMAND_LIST= for file in $COMMAND_LIST; do REVCOMMAND_LIST="$file $REVCOMMAND_LIST" done for file in $REVCOMMAND_LIST; do - $rcd_dir/$file $_arg + $rcd_dir/$file $rc_arg done } |