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
33 if [ x"${ATALKD_RUN}" != x"no" -a -x ${ATALK_SBIN}/atalkd ]; then
36 if [ -x ${ATALK_BIN}/nbprgstr ]; then
37 ${ATALK_BIN}/nbprgstr -p 4 ${ATALK_NAME}:Workstation${ATALK_ZONE}
38 ${ATALK_BIN}/nbprgstr -p 4 ${ATALK_NAME}:netatalk${ATALK_ZONE}
41 if [ x"${PAPD_RUN}" = x"yes" -a -x ${ATALK_SBIN}/papd ]; then
45 # check for timelord in bin directory
46 if [ x"${TIMELORD_RUN}" = x"yes" -a -x ${ATALK_BIN}/timelord ]; then
50 # check for timelord in sbin directory
51 if [ x"${TIMELORD_RUN}" = x"yes" -a -x ${ATALK_SBIN}/timelord ]; then
52 ${ATALK_SBIN}/timelord
55 # check for a2boot in bin directory
56 if [ x"${A2BOOT_RUN}" = x"yes" -a -x ${ATALK_BIN}/a2boot ]; then
60 # check for a2boot in sbin directory
61 if [ x"${A2BOOT_RUN}" = x"yes" -a -x ${ATALK_SBIN}/a2boot ]; then
66 if [ x"${CNID_METAD_RUN}" = x"yes" -a -x ${ATALK_SBIN}/cnid_metad ]; then
67 ${ATALK_SBIN}/cnid_metad $CNID_CONFIG
70 if [ x"${AFPD_RUN}" = x"yes" -a -x ${ATALK_SBIN}/afpd ]; then
71 ${ATALK_SBIN}/afpd ${AFPD_UAMLIST} -g ${AFPD_GUEST} \
72 -c ${AFPD_MAX_CLIENTS} -n ${ATALK_NAME}${ATALK_ZONE}