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-mplayer/files/rc-addon-0.9.15.sh

24 lines
536 B

# $Id$
#
# 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}"
}