summaryrefslogtreecommitdiff
blob: 790fa962e94a78fe310cb376376a1e440c5f9779 (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
# $Id$
#
# zzam@g.o
# hd_brummy@g.o


plugin_pre_vdr_start() {
	if [ "${LIVE_USE_SSL:=no}" = "yes" ]; then
		if [ -n "${LIVE_SSL_PORT}" ]; then
			add_plugin_param "-s ${LIVE_SSL_PORT}"
		fi

		add_plugin_param "--cert=/etc/vdr/plugins/live/live.pem"
		add_plugin_param "--key=/etc/vdr/plugins/live/live-key.pem"

	else
		if [ -n "${LIVE_PORT}" ]; then
			add_plugin_param "-p ${LIVE_PORT}"
		fi
	fi

	local ip
	for ip in ${LIVE_BIND_IPS:=`hostname -i`}; do
		add_plugin_param "-i ${ip}"
	done
}