summaryrefslogtreecommitdiff
path: root/net/netatalk-devel/files/netatalk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/netatalk-devel/files/netatalk.sh')
-rw-r--r--net/netatalk-devel/files/netatalk.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/net/netatalk-devel/files/netatalk.sh b/net/netatalk-devel/files/netatalk.sh
index aea45751cd73..181a9ff72f28 100644
--- a/net/netatalk-devel/files/netatalk.sh
+++ b/net/netatalk-devel/files/netatalk.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $FreeBSD: /tmp/pcvs/ports/net/netatalk-devel/files/Attic/netatalk.sh,v 1.4 2004-07-21 19:56:30 marcus Exp $
+# $FreeBSD: /tmp/pcvs/ports/net/netatalk-devel/files/Attic/netatalk.sh,v 1.5 2004-07-26 20:12:57 marcus Exp $
#
# PROVIDE: netatalk
# REQUIRE: DAEMON
@@ -11,6 +11,13 @@
# other processes.
#
+netatalk_enable=${netatalk_enable-"NO"}
+atalkd_enable=${atalkd_enable-"NO"}
+papd_enable=${papd_enable-"NO"}
+cnid_metad_enable=${cnid_metad_enable-"NO"}
+afpd_enable=${afpd_enable-"NO"}
+timelord_enable=${timelord_enable-"NO"}
+
. %%RC_SUBR%%
name=netatalk
@@ -42,12 +49,5 @@ netatalk_stop() {
checkyesno atalkd_enable && killall atalkd
}
-[ -z "$netatalk_enable" ] && netatalk_enable="NO"
-[ -z "$atalkd_enable" ] && atalkd_enable="NO"
-[ -z "$papd_enable" ] && papd_enable="NO"
-[ -z "$cnid_metad_enable" ] && cnid_metad_enable="NO"
-[ -z "$afpd_enable" ] && afpd_enable="NO"
-[ -z "$timelord_enable" ] && timelord_enable="NO"
-
load_rc_config ${name}
run_rc_command "$1"