3 # Netatalk :NETATALK_VERSION: startup script for systemd.
6 ATALK_CONF_DIR=:ETCDIR:
10 ATALK_NAME=`echo ${HOSTNAME}|cut -d. -f1`
11 ATALK_UNIX_CHARSET='LOCALE'
12 ATALK_MAC_CHARSET='MAC_ROMAN'
17 AFPD_UAMLIST="-U uams_dhx.so,uams_dhx2.so"
19 CNID_CONFIG="-l log_note"
28 # read in netatalk configuration
29 if [ -f ${ATALK_CONF_DIR}/netatalk.conf ]; then
30 . ${ATALK_CONF_DIR}/netatalk.conf
34 if [ x"${ATALKD_RUN}" != x"no" -a -x ${ATALK_SBIN}/atalkd ]; then
37 if [ -x ${ATALK_BIN}/nbprgstr ]; then
38 ${ATALK_BIN}/nbprgstr -p 4 ${ATALK_NAME}:Workstation${ATALK_ZONE}
39 ${ATALK_BIN}/nbprgstr -p 4 ${ATALK_NAME}:netatalk${ATALK_ZONE}
42 if [ x"${PAPD_RUN}" = x"yes" -a -x ${ATALK_SBIN}/papd ]; then
46 # check for timelord in bin directory
47 if [ x"${TIMELORD_RUN}" = x"yes" -a -x ${ATALK_BIN}/timelord ]; then
51 # check for timelord in sbin directory
52 if [ x"${TIMELORD_RUN}" = x"yes" -a -x ${ATALK_SBIN}/timelord ]; then
53 ${ATALK_SBIN}/timelord
56 # check for a2boot in bin directory
57 if [ x"${A2BOOT_RUN}" = x"yes" -a -x ${ATALK_BIN}/a2boot ]; then
61 # check for a2boot in sbin directory
62 if [ x"${A2BOOT_RUN}" = x"yes" -a -x ${ATALK_SBIN}/a2boot ]; then
67 if [ x"${CNID_METAD_RUN}" = x"yes" -a -x ${ATALK_SBIN}/cnid_metad ]; then
68 ${ATALK_SBIN}/cnid_metad $CNID_CONFIG
71 if [ x"${AFPD_RUN}" = x"yes" -a -x ${ATALK_SBIN}/afpd ]; then
72 ${ATALK_SBIN}/afpd ${AFPD_UAMLIST} -g ${AFPD_GUEST} \
73 -c ${AFPD_MAX_CLIENTS} -n ${ATALK_NAME}${ATALK_ZONE}
77 if [ x"${ATALK_BGROUND}" = x"yes" -a x"${ATALKD_RUN}" != x"no" ]; then
78 netatalk_startup >& /dev/null &