DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-01-08 13:51:08

knireis
Member
Registered: 2007-12-10
Posts: 231

twonkyserver does not start automatically with funplug 0.3

I installed the funplug 0.3 with fanscript, it works fine. Thereafter I installed the Twonkyserver using the installer on the twonky website.
After installing it works good but when i restart the CH3SNAS, the twonkyserver is not started. I can start it using the installer but it would be nice when it starts automatically.

The funplug looks like this:
#!/bin/sh

VOL1=/mnt/HD_a2
VOL2=/mnt/HD_b2
FUNPLUGTAR=${VOL1}/fun_plug.tar
FUNPLUGDIR=${VOL1}/fun_plug.d
ETCDIR=${FUNPLUGDIR}/etc
BINDIR=${FUNPLUGDIR}/bin
SBINDIR=${FUNPLUGDIR}/bin
LIBDIR=${FUNPLUGDIR}/lib
LOGDIR=${FUNPLUGDIR}/log
LOGFILE=${LOGDIR}/fun_plug.log
PATH=${BINDIR}:${PATH}
LD_LIBRARY_PATH=${LIBDIR}

export VOL1
export VOL2
export FUNPLUGDIR
export ETCDIR
export BINDIR
export LIBDIR
export LOGDIR
export LOGFILE
export PATH
export LD_LIBRARY_PATH

umask 022

mkdir -p ${FUNPLUGDIR} ${LOGDIR}
echo "**** fun_plug script for DNS-323 (2007-07-22 tp@fonz.de) ****" >>${LOGFILE}
date >>${LOGFILE}

if [ -r "${FUNPLUGTAR}" ]; then
    echo "* Extracting ${FUNPLUGTAR}..." >>${LOGFILE}
    /bin/tar -xv -f ${FUNPLUGTAR} -C ${FUNPLUGDIR} 1>>${LOGFILE} 2>&1
    echo "* Deleting ${FUNPLUGTAR}..." >>${LOGFILE}
    rm -f ${FUNPLUGTAR}
fi

# suid busybox
if [ -e ${BINDIR}/busybox ]; then
    chown root.root ${BINDIR}/busybox
    chmod 0755 ${BINDIR}/busybox
    chmod u+s ${BINDIR}/busybox
fi

echo "${LIBDIR}" >>/etc/ld.so.conf
ldconfig

if [ -d "${FUNPLUGDIR}/start" ]; then
    for fun_plug_script in ${FUNPLUGDIR}/start/*.sh; do
        if [ -x "${fun_plug_script}" ]; then
            echo "* Running ${fun_plug_script} start ..." >>${LOGFILE}
            ${fun_plug_script} start 1>>${LOGFILE} 2>&1
        else
            echo "* ${fun_plug_script} not executable..." >>${LOGFILE}
        fi
    done
else
    echo "* ${FUNPLUGDIR}/start: Directory not found"
fi

echo "* Done" >>${LOGFILE}
/mnt/HD_a2/ctrl_fanspeed.sh
/mnt/HD_a2/starttwonky.sh



and the starttwonky.sh file like this:

#!/bin/sh
route add -net 224.0.0.0 netmask 240.0.0.0 dev egiga0

cd /mnt/HD_a2/twonky
/mnt/HD_a2/twonky/twonkymedia &



Does anyone have a solution?

Offline

 

#2 2008-01-08 14:16:08

knireis
Member
Registered: 2007-12-10
Posts: 231

Re: twonkyserver does not start automatically with funplug 0.3

I found the solution already, make sure the line with the twonkystart.sh line should be above the fanspeed.sh line

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB