florian 1435f69655 [package] add uams libraries, configuration file and init script (#6965)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20539 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-28 13:21:56 +00:00

26 lines
304 B
Bash

#!/bin/sh /etc/rc.common
START=70
MAXCONS="7"
CONFIGFILE="/etc/netatalk/afpd.conf"
PIDFILE="/var/run/afpd.pid"
start()
{
/usr/bin/cnid_metad
/usr/bin/afpd -F ${CONFIGFILE} -P ${PIDFILE} -c ${MAXCONS}
}
stop()
{
killall afpd
killall cnid_metad
}
reload()
{
kill -s HUP `cat ${PIDFILE}`
start
}