summaryrefslogtreecommitdiff
blob: 9ee9e52a43187c95d0001826689d1801c4caf561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# rc-addon plugin-startup-skript for vdr-vdrmanager
#

: ${VDRMANAGER_PORT:=6420}

# default path from ebuild merge; no option in config file to overwrite
: ${VDRMANAGER_CERTFILE:=/etc/vdr/plugins/vdrmanager/vdrmanager.pem}

if [[ -z ${VDRMANAGER_PASS} ]]; then
	eerror "Empty password in /etc/conf.d/vdr.vdrmanager"
	logger -t vdr "ERROR: need password for plugin vdr-manager"
fi

plugin_pre_vdr_start() {

	add_plugin_param "-p${VDRMANAGER_PORT}"
	add_plugin_param "-P${VDRMANAGER_PASS}"

	if yesno ${SVDRPHOSTS_CHECK:-no}; then
		add_plugin_param "-s"
	fi

	add_plugin_param "-k ${VDRMANAGER_CERTFILE}"

	# vdrmanager_compression
	add_plugin_param "-c ${VDRMANAGER_COMPRESSION}"
}