You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-plugins/vdr-live/files/rc-addon-2.3.sh

31 lines
619 B

#
# zzam@g.o
# hd_brummy@g.o
EPGIMAGES_DIR="/var/cache/vdr/epgimages"
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
if [ -d ${EPGIMAGES_DIR} ]; then
add_plugin_param "--epgimages=${EPGIMAGES_DIR}"
fi
local ip
for ip in ${LIVE_BIND_IPS:=`hostname -i`}; do
add_plugin_param "-i ${ip}"
done
}