blob: 1ea9a2d094dc658b81d6ce4040013d02a1e3c16c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/net/netatalk-devel/files/Attic/netatalk.sh,v 1.1 2001-05-18 20:00:29 dinoex Exp $
#
# AppleTalk daemons. Make sure not to start atalkd in the background:
# its data structures must have time to stablize before running the
# other processes.
#
if ! test -x %%PREFIX%%/sbin/atalkd
then
# exit 0
fi
HOSTNAME=`hostname|sed 's/\..*$//'`
case $1 in
start)
echo -n ' netatalk'
%%PREFIX%%/sbin/atalkd
%%PREFIX%%/bin/nbprgstr -p 4 ${HOSTNAME}:Workstation &
%%PREFIX%%/bin/nbprgstr -p 4 ${HOSTNAME}:netatalk &
%%PREFIX%%/sbin/papd
%%PREFIX%%/sbin/afpd -s %%PREFIX%%/etc/AppleVolumes.system \
-f %%PREFIX%%/etc/AppleVolumes.default
;;
stop)
killall afpd
killall papd
killall atalkd
;;
*)
echo "Usage: $0: [ start | stop ]" 2>&1
exit 65
;;
esac
|