mirror of
https://github.com/kenzok8/small-package
synced 2025-01-09 08:59:26 +08:00
24 lines
436 B
Plaintext
24 lines
436 B
Plaintext
|
#!/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
|
||
|
}
|
||
|
|