You guys really should post a current CVS tarball somewhere, because the
current state of Sourceforge.net's CVS is making it difficult for you guys
to cooperate...
On another subject I have been working on some python to easily discover and
mount Samba shares. I am planning on incorporating it into freevo as a
plugin. The only user options are username and password, which aren't
required but are very useful. Right now it works great with 9x and Samba
servers, but isn't always successful with XP unless you set up a
username/password.
Currently, the script calls nmblookup and smbclient to locate shares and
then parses the output from those commands. I eventually will need to
figure out how to detect the presence of those two commands, but that can be
done later. So far, I haven't been able to locate any python-samba bindings,
but I will keep looking as this would be way better. Opinions?
Oh and I have a Gentoo init script for Freevo attached that is adapted to work
with Gentoo much better than the current script. Please incorporate it into
the ebuild and test it.
Tony
#! /sbin/runscript
#
# Initial Boot script for freevo on gentoo
#
# adapted by Tony Murray
depend() {
need localmount
use net lircd mysql postgresql
}
# Get startup config file, should be there since ebuild will put it there.
checkconfig() {
if [ ! -e /etc/conf.d/freevo ] ; then
eerror "/etc/conf.d/freevo not defined"
eerror "copy /opt/freevo/boot/boot_config /etc/conf.d/freevo"
return 1
fi
}
start() {
checkconfig || return 1
DAEMON=$FREEVO_HOME/freevo
if [ ! -e $DAEMON ] ; then
eerror "FREEVO_HOME not set correctly in /etc/conf.d/freevo"
return 1
fi
ebegin "Starting Freevo"
#these can be set in /etc/conf.d/freevo file...
export SDL_NOKEYBOARD=true
export SDL_VIDEODRIVER=fbcon
cd $FREEVO_HOME && $DAEMON >> $FREEVO_LOG 2>&1 &
eend $?
}
stop() {
ebegin "Stopping Freevo"
killall freevo_python &> /dev/null
killall freevo_xwin &> /dev/null
killall mplayer &> /dev/null
kill `pgrep -f "python src/main.py" -d" "` &> /dev/null
kill `pgrep -f "python main.py" -d" "` &> /dev/null
kill `pgrep -f "python rc_client" -d" "` &> /dev/null
eend
ebegin "Releasing the VT"
$VTRELEASE
eend $?
}