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

#26 2009-01-19 19:33:54

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

Re: Twonky's new website

Largest problem to me is the fact that you cannot configure the music tree anymore. Now you can also use the CH3SNAS buildin upnp server.
Maybe i can't find how to do it? Otherwise i go back to 4.4.11

Offline

 

#27 2009-04-20 23:15:49

perssinaasappel
Member
From: Europe
Registered: 2008-10-22
Posts: 59

Re: Twonky's new website

@SilentException: I found your script but want to know a few things before I use it.

You seem to use a few directories I don't have.
- /web/log/ for the twonkymedia.log file (Is this log file needed?)
- /ffp/share/twonky/ for the twonkymedia file (In my case it's in /mnt/HD_a2/twonky/ )

Can you please explain?

Code:

#!/ffp/bin/sh

# PROVIDE: twonky
# REQUIRE: LOGIN

. /ffp/etc/ffp.subr

name="twonky"
start_cmd="twonky_start"
stop_cmd="twonky_stop"
status_cmd="twonky_status"
log_file="/web/log/twonkymedia.log"

twonky_start()
{
        echo "Starting twonky..."
        route add -net 224.0.0.0 netmask 240.0.0.0 dev egiga0
        #/ffp/share/twonky/twonkymedia >$log_file 2>&1 &
        /ffp/share/twonky/twonkymedia &
        sleep 2
        echo "twonky started."
}

twonky_stop()
{
        if [ `twonky_temp_status` = "running" ]; then
                echo "Killing twonky..."
                killall twonkymedia
                sleep 2
                echo "twonky killed."
        else
                echo "Nothing to do..."
        fi
}

twonky_status()
{
        if [ -n "$(pidof twonkymedia)" ]; then
                echo "twonky running."
        else
                echo "twonky stopped."
        fi
}

twonky_temp_status()
{
        if [ -n "$(pidof twonkymedia)" ]; then
                echo "running"
        else
                echo "stopped"
        fi
}

run_rc_command "$1"

CH3SNAS • 1.05b5 • ffp 0.5 • 2x WD Caviar Green WD5000AACS • nzbget(web)

Offline

 

#28 2009-10-12 08:01:24

Aqvahh
Member
Registered: 2008-03-13
Posts: 7

Re: Twonky's new website

Does #touch /bin/.tv  work with the 4.4.18 or new 5.x ?

Last edited by Aqvahh (2009-10-12 13:53:52)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB