summaryrefslogtreecommitdiffstats
path: root/net/netatalk/files/a2boot.init
blob: 781a2e26897826124893db0efc2d309ab1a0d813 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh /etc/rc.common

START=94

USE_PROCD=1
PROG=/usr/sbin/a2boot

start_service() {
	config_load a2boot

	config_get disabled a2boot disabled '0'
	[ "$disabled" == "0" ] || { 
		logger -p info -t a2boot "Disabled by config" && exit 
	}

	config_get nbpname a2boot nbpname
	[ -z "$nbpname" ] || nbpname="-n $nbpname"

	procd_open_instance
	procd_set_param command $PROG -d $nbpname
	procd_set_param respawn
	procd_close_instance
}