blob: a2b37d2f045258cbe8d091ea319185832103f3ad (
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
29
30
31
32
33
34
35
36
37
38
|
# $Id$
addon_main() {
add_param "--watchdog=${INTERNAL_WATCHDOG:-60}"
[ -n "${AC3_AUDIO}" ] && add_param "--audio=${AC3_AUDIO}"
[ "${MUTE}" = "yes" ] && add_param "--mute"
[ -n "${CONFIG}" ] && add_param "--config=${CONFIG}"
[ -n "${DEVICE}" ] && for i in ${DEVICE}; do add_param "--device=${i}"; done
[ -n "${EPGFILE}" ] && add_param "--epgfile=${EPGFILE}"
add_param "--log=${LOG:-1}"
[ -z "${VIDEO}" ] && VIDEO="/var/vdr/video"
if [ ! -d "${VIDEO}" ]; then
mkdir -p "${VIDEO}"
chown vdr:vdr "${VIDEO}"
einfo "Created directory ${VIDEO}"
fi
add_param "--video=${VIDEO}"
[ -n "${SVDRP_PORT}" ] && add_param "--port=${SVDRP_PORT}"
[ -n "${RECORD_HOOK}" ] && add_param "--record=${RECORD_HOOK}"
if [ -n "${CAP_IRCTRL_RUNTIME_PARAM}" ] && [ -n "${IR_CTRL}" ]; then
case "${IR_CTRL}" in
lirc|rcu) add_param "--${IR_CTRL}" ;;
esac
fi
if [ -n "${CAP_VFAT_RUNTIME_PARAM}" ] && [ "${VFAT_FILENAMES}" = "yes" ]; then
add_param "--vfat"
fi
add_param "--record=/usr/share/vdr/bin/vdrrecord-gate.sh"
if [ -n "${VDR_EXTRA_OPTIONS}" ]; then
add_param ${VDR_EXTRA_OPTIONS}
fi
return 0
}
|