1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-27 11:25:26 +02:00
openwrt-packages/net/netatalk/files/afpd.init
Daniel Golle c0e0e7198e netatalk: update to version 3.1.9
* now a single config file in /etc/afp.conf
 * convert services to procd while at it
 * take over maintainership as the original maintainer is
   unresponsive (see #1550)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-09-12 00:15:47 +02:00

24 lines
436 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2010-2012 OpenWrt.org
START=80
STOP=10
USE_PROCD=1
start_service() {
mkdir -p /var/netatalk/CNID/
procd_open_instance
procd_set_param command /usr/sbin/afpd -d -F /etc/afp.conf
procd_set_param file /etc/afp.conf
procd_set_param respawn
procd_close_instance
procd_open_instance
procd_set_param command /usr/sbin/cnid_metad -d
procd_set_param respawn
procd_close_instance
}