Problem is that with the ipkg package you have two problems:
- you WILL get that database error, requiring you manually recreate it via cat, and it's likely it will happen again
- you WONT be able to autostart mediatomb when the router reboots (the -d command fails)
The static package includes it's own config.xml file etc...the ipkg package should be pulled from the optware list as it is problematic for our router.
This is my mediatomb.sh file:
#!/bin/sh
# if you want to launch this script from a different directory (for example
# from an another init script or similar, set the LAUNCHDIR variable below
# to the absolute path of the mediatomb.sh script
LAUNCHDIR=`pwd`
export MEDIATOMB_DATADIR="$LAUNCHDIR/usr/share/mediatomb"
export MEDIATOMB_MAGIC_FILE="usr/share/file/magic"
$LAUNCHDIR/usr/bin/mediatomb -m $LAUNCHDIR -f config -d
This is my post-mount file
#! /bin/sh
/opt/etc/init.d/rc.unslung start
cd /opt/share/mediatomb
./mediatomb.sh
Link to static build : http://downloads.sourceforge.net/med...ips32el.tar.gz
Hope this helps