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 2007-09-16 00:07:36

cybermike
Member
Registered: 2007-09-09
Posts: 18

CHS3NAS how i like it - here is my config :-)

Everything works like a charm now, am start Twonkymedia and Firefly via fun_plug and "fixed" the sambaserver bug. This device really rocks :-)

Here is how i start it, see my fun_plug:

Code:

#!/bin/sh

...
untouched section of the script
...

# restart samba
/mnt/HD_a2/startsmb.sh

# firefly itunes server
/mnt/HD_a2/startfirefly.sh

# twonkymedia upnp server
/mnt/HD_a2/starttwonky.sh

This workaround restarts the samba server so that the NAS is reachable after a reboot without intervention via the webinterface.

startsmb.sh

Code:

#!/bin/sh
smb restart

And here is how i start Firefly (instead of the built in iTunes server).

startfirefly.sh

Code:

#!/bin/sh
if [ -f /mnt/HD_a2/lnx_bin/mt-daapd ]
then
  cd /mnt/HD_a2
  export PATH=/mnt/HD_a2/lnx_bin:$PATH
  export LD_LIBRARY_PATH=/mnt/HD_a2/lnx_bin/lib
  /mnt/HD_a2/lnx_bin/mt-daapd -c /mnt/HD_a2/lnx_bin/mt-daapd.conf
fi

And here i start TwonkyMedia as my UPnP Server (instead of the built in UPnP Server).

starttwonky.sh

Code:

#!/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 &

Please note that all lines must end with a Unix style LF (Linefeed). This took me Linux newbee a while to notice.
  Hopefully some beginners will find this information useful :-)

Michael

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB