summaryrefslogtreecommitdiff
path: root/net/samba20/files/samba.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/samba20/files/samba.sh')
-rw-r--r--net/samba20/files/samba.sh10
1 files changed, 5 insertions, 5 deletions
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