1998-03-01 18:22:39 +00:00
|
|
|
diff -crP ../netatalk-1.4b2/rc.atalk.freebsd ./rc.atalk.freebsd
|
|
|
|
*** ../netatalk-1.4b2/rc.atalk.freebsd Thu Jan 1 01:00:00 1970
|
|
|
|
--- ./rc.atalk.freebsd Thu Jul 24 02:14:39 1997
|
|
|
|
***************
|
|
|
|
*** 0 ****
|
1998-09-09 01:31:06 +00:00
|
|
|
--- 1,26 ----
|
1998-03-01 18:22:39 +00:00
|
|
|
+ #
|
|
|
|
+ # AppleTalk daemons. Make sure not to start atalkd in the background:
|
|
|
|
+ # its data structures must have time to stablize before running the
|
|
|
|
+ # other processes.
|
|
|
|
+ #
|
1998-09-09 01:31:06 +00:00
|
|
|
+ PREFIX=/`expr $0 : '/\(.*\)/etc/rc.d/netatalk.sh'`
|
|
|
|
+ if [ "x${PREFIX}" = "x/" ]; then
|
|
|
|
+ printf "\nnetatalk: Cannot determine PREFIX.\n" >&2
|
|
|
|
+ exit 64
|
|
|
|
+ fi
|
|
|
|
+ HOSTNAME=`hostname|sed 's/\..*$//'`
|
1998-03-01 18:22:39 +00:00
|
|
|
+
|
|
|
|
+ case $1 in
|
|
|
|
+ start) echo -n ' netatalk'
|
1998-09-09 01:31:06 +00:00
|
|
|
+ ${PREFIX}/libexec/atalkd
|
|
|
|
+ ${PREFIX}/bin/nbprgstr -p 4 ${HOSTNAME}:Workstation &
|
|
|
|
+ ${PREFIX}/bin/nbprgstr -p 4 ${HOSTNAME}:netatalk &
|
|
|
|
+ ${PREFIX}/libexec/papd
|
|
|
|
+ ${PREFIX}/libexec/afpd -s ${PREFIX}/etc/AppleVolumes.system \
|
|
|
|
+ -f ${PREFIX}/etc/AppleVolumes.default
|
1998-03-01 18:22:39 +00:00
|
|
|
+ ;;
|
|
|
|
+ stop) killall afpd
|
|
|
|
+ killall papd
|
|
|
|
+ killall atalkd
|
|
|
|
+ ;;
|
|
|
|
+ esac
|