diff options
Diffstat (limited to 'media-plugins/vdr-mplayer/files/rc-addon-0.9.15.sh')
-rw-r--r-- | media-plugins/vdr-mplayer/files/rc-addon-0.9.15.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/media-plugins/vdr-mplayer/files/rc-addon-0.9.15.sh b/media-plugins/vdr-mplayer/files/rc-addon-0.9.15.sh new file mode 100644 index 000000000000..c2de41b208f0 --- /dev/null +++ b/media-plugins/vdr-mplayer/files/rc-addon-0.9.15.sh @@ -0,0 +1,23 @@ +# $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}" +} |