#!/bin/sh
#
# start MPlayer's utilities
#
# runlevels: geexbox, debug, configure

echo "### Starting MPlayer's utilities ###"

# create the mplayer control pipe for external programs
mkfifo /var/mp_control

# start the autolaunching script
#. /etc/autoplay
#[ $AUTOPLAY == "yes" ] && echo -n "" > /var/autoplay
#/usr/bin/autoplay 8 > /var/mp_control &

# proceed to dvdnav setting
. /etc/dvd
[ $DVDNAV == "yes" ] && echo -n "" > /var/dvdnav

# start the file copy daemon
/usr/bin/cpd &

# Dump MPlayer revision/version for creating libmenu info text file
[ ! -e /etc/mp_version ] && mplayer -ao null -vo null | grep MPlayer | cut -f2 -d\  > /etc/mp_version

exit 0
