summaryrefslogtreecommitdiff
blob: d95c05aff063869d68a2d8ca9b65d9e54e83cb8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# rc-addon plugin-startup-skript for vdr-mplayer
#

: ${MPLAYER_PLUGIN_CALL:=mplay.sh}
: ${MPLAYER_PLUGIN_MOUNT:=mount-mplayer.sh}

plugin_pre_vdr_start() {
	local P=/usr/share/vdr/mplayer/bin
	local CALL=""
	if [ -f $P/${MPLAYER_PLUGIN_CALL} ]; then
		CALL=${MPLAYER_PLUGIN_CALL}
	elif [ -f $P/mplay.sh ]; then
		CALL=mplay.sh
	elif [ -f $P/mplayer.sh ]; then
		CALL=mplayer.sh
	else
		eerror "vdr-mplayer: No mplayer-script found"
	fi
	add_plugin_param "-m ${P}/${MPLAYER_PLUGIN_MOUNT}"
	add_plugin_param "-M ${P}/${CALL}"
}