summaryrefslogtreecommitdiff
path: root/net/samba20
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-11-21 21:38:50 +0000
committerjlam <jlam@pkgsrc.org>2001-11-21 21:38:50 +0000
commit892b322f451ae5245d6e3c85a919169078fde83f (patch)
tree62d19c3fd37e1ac0c17df9885582a76d4eab225f /net/samba20
parent878e9eaf6acb17ac0eb0bac6ac0ab8bf8008f158 (diff)
downloadpkgsrc-892b322f451ae5245d6e3c85a919169078fde83f.tar.gz
These rc.d scripts are copied to ${RCD_SCRIPTS_DIR} == /etc/rc.d, so change
the test for pre-rc.d systems to just whether /etc/rc.subr is present.
Diffstat (limited to 'net/samba20')
-rwxr-xr-xnet/samba20/files/nmbd.sh12
-rw-r--r--net/samba20/files/samba.sh10
-rwxr-xr-xnet/samba20/files/smbd.sh12
3 files changed, 17 insertions, 17 deletions
diff --git a/net/samba20/files/nmbd.sh b/net/samba20/files/nmbd.sh
index 9f60a1d0c0c..03fdca260dc 100755
--- a/net/samba20/files/nmbd.sh
+++ b/net/samba20/files/nmbd.sh
@@ -1,11 +1,11 @@
#!/bin/sh
#
-# $NetBSD: nmbd.sh,v 1.3 2001/11/21 17:17:44 jlam Exp $
+# $NetBSD: nmbd.sh,v 1.4 2001/11/21 21:38:53 jlam Exp $
#
# PROVIDE: nmbd
# REQUIRE: DAEMON
-if [ -d /etc/rc.d -a -f /etc/rc.subr ]
+if [ -e /etc/rc.subr ]
then
. /etc/rc.subr
fi
@@ -20,11 +20,11 @@ command_args="-D" # _must_ start as daemon from rc.d;
reload_cmd=":" # avoid dumping debug output on SIGHUP
-if [ ! -d /etc/rc.d ]
+if [ -e /etc/rc.subr ]
then
- @ECHO@ -n ' ${name}'
- ${command} ${nmbd_flags} ${command_args}
-else
load_rc_config $name
run_rc_command "$1"
+else
+ @ECHO@ -n ' ${name}'
+ ${command} ${nmbd_flags} ${command_args}
fi
diff --git a/net/samba20/files/samba.sh b/net/samba20/files/samba.sh
index be58749b28d..af47afd53e3 100644
--- a/net/samba20/files/samba.sh
+++ b/net/samba20/files/samba.sh
@@ -1,11 +1,11 @@
#!/bin/sh
#
-# $NetBSD: samba.sh,v 1.3 2001/11/21 17:17:44 jlam Exp $
+# $NetBSD: samba.sh,v 1.4 2001/11/21 21:38:54 jlam Exp $
#
# PROVIDE: samba
# KEYWORD: nostart
-if [ -d /etc/rc.d -a -f /etc/rc.subr ]
+if [ -e /etc/rc.subr ]
then
. /etc/rc.subr
fi
@@ -39,11 +39,11 @@ reload_cmd="forward_commands"
status_cmd="forward_commands"
extra_commands="reload status"
-if [ ! -d /etc/rc.d ]
+if [ -e /etc/rc.subr ]
then
+ run_rc_command "$1"
+else
@ECHO@ -n ' ${name}'
_arg="$1"
${start_cmd}
-else
- run_rc_command "$1"
fi
diff --git a/net/samba20/files/smbd.sh b/net/samba20/files/smbd.sh
index 3e233312f8a..dad6f156057 100755
--- a/net/samba20/files/smbd.sh
+++ b/net/samba20/files/smbd.sh
@@ -1,11 +1,11 @@
#!/bin/sh
#
-# $NetBSD: smbd.sh,v 1.4 2001/11/21 17:17:44 jlam Exp $
+# $NetBSD: smbd.sh,v 1.5 2001/11/21 21:38:54 jlam Exp $
#
# PROVIDE: smbd
# REQUIRE: DAEMON
-if [ -d /etc/rc.d -a -f /etc/rc.subr ]
+if [ -e /etc/rc.subr ]
then
. /etc/rc.subr
fi
@@ -18,11 +18,11 @@ extra_commands="reload"
command_args="-D" # _must_ start as daemon from rc.d;
# add more flags through ${${name}_flags}
-if [ ! -d /etc/rc.d ]
+if [ -e /etc/rc.subr ]
then
- @ECHO@ -n ' ${name}'
- ${command} ${smbd_flags} ${command_args}
-else
load_rc_config $name
run_rc_command "$1"
+else
+ @ECHO@ -n ' ${name}'
+ ${command} ${smbd_flags} ${command_args}
fi