Bekijk de volledige versie : [Help]Transmission 1.92 (auto script)
KnightOni
29-04-2010, 10:10
guys anyone can help me with auto script?
every time my router reboots i have to do manual configuration of this
transmission-daemon --auth --config-dir /opt/transmission
to run transmission 1.92
WL-500 GP
TIA
put it in your startup script?
Can you be more clear?
KnightOni
30-04-2010, 04:24
yes bro.. i don't know where to insert it and how..
TIA
KnightOni
02-05-2010, 06:46
anyone can help me? making auto script to run transmission 1.92?
TIA
Normally scripts are run from /opt/etc/init.d
and then a file name e.g:
S89transmission
The file contents should be something like this:
#!/bin/sh
export PATH=/opt/bin:/opt/sbin:$(PATH)
start() {
echo "starting..."
/opt/bin/transmission-daemon --auth --config-dir /opt/transmission
}
stop() {
if [ -f /opt/var/run/transmission.pid ] ; then
kill `cat /opt/var/run/transmission.pid`
else
killall -9 transmission-daemon
fi
rm -f /opt/var/run/transmission.pid
umask 077
echo "stopped"
}
case "$1" in
start)
stop
sleep 1
start
;;
stop)
stop
;;
restart)
stop
sleep 1
start
;;
*)
echo "Usage: $0 (start|stop|restart)"
exit 1
;;
esac
Be sure to set executable right on S89transmission:
chmod +x S89transmission
KnightOni
03-05-2010, 06:34
Thanks bro for helping me out..
More power and God Bless
Cheers