netatalk: New package

This package adds a daemon for Apple's File Protocol

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Michael Tremer
2020-04-24 10:28:12 +00:00
committed by Arne Fitzenreiter
parent 77ed195189
commit 18d000c486
8 changed files with 343 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
#!/bin/sh
########################################################################
# Begin $rc_base/init.d/netatalk
########################################################################
. /etc/sysconfig/rc
. ${rc_functions}
case "${1}" in
start)
boot_mesg "Starting Netatalk AFP File Server..."
loadproc /usr/sbin/netatalk
;;
stop)
boot_mesg "Stopping Netatalk AFP File Server..."
killproc /usr/sbin/netatalk
;;
reload)
boot_mesg "Reloading Netatalk AFP File Server..."
reloadproc /usr/sbin/netatalk
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
statusproc /usr/sbin/netatalk
;;
*)
echo "Usage: ${0} {start|stop|reload|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/netatalk