Startup script for transmission on OpenWrt.

I wrote a blog some time ago describing running transmission on OpenWrt. Apparently I forgot to include the startup script in the blogpost, so I am posting it here.

Insert the following snippet into /etc/init.d/transmission.

#!/bin/sh /etc/rc.common

START=99

start(){  
  # Adjust as needed.  
  username=username  
  password=password  
  torrentpath=/mnt/torrent  
  transmission-daemon -b -f -p 9091 -t -u $username -v $password -w $torrentpath >/dev/null 2>&1 &  
}

stop(){  
  killall -9 transmission-daemon  
}

Remember to adjust the username, password and torrentpath. Next, on your router, run

cd /etc/init.d
chmod +x transmission
./transmission enable

Written by Jannich Brendle tor 09 juli 2009 In How to

tags: howtolinuxOpenWrttransmission

Related posts

social