mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 19:15:54 +02:00
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:
committed by
Arne Fitzenreiter
parent
77ed195189
commit
18d000c486
41
src/initscripts/packages/netatalk
Normal file
41
src/initscripts/packages/netatalk
Normal 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
|
||||
Reference in New Issue
Block a user