Hi Guys,
@AndreyPopov, yes, I resetted the firmware to default before upgrading to 10.
@vectorm
transmission version is:
transmission - 1.20+r5837-1
cgi running on busybox http, no sendmail
transmission.conf looks like this
Code:
# Configuration
# NOTE: no spaces around the = sign
# the config will be sourced (eg. . transmission.conf)
SOURCE=/tmp/mnt/disc0_3/torrent/source
WORK=/tmp/mnt/disc0_3/torrent/work
TARGET=/tmp/mnt/disc0_3/torrent/target
#MAILTO=torrent@somedomain.com
#MAILFROM=torrent@somedomain.com
MAILOPT="-smail.somedomain.com -f"
USER=admin
GROUP=root
DATE_FORMAT="%d %h %H:%M"
# Transmission daemon variables
PIDFILE=/opt/var/run/transmission.pid
ACTIVE=/tmp/mnt/disc0_3/torrent/active-torrents.txt
HOME=/tmp/mnt/disc0_3/torrent
WATCHDOG=300
LISTENING_PORT=65531
# set SPEED in kB/s or -1 for unlimited
UPLOAD_SPEED=20
DOWNLOAD_SPEED=-1
#UPLOAD_SPEED=41
#DOWNLOAD_SPEED=180
# uncomment the following if encryption is preferred
# ENCRYPTION=-e
# uncomment the following if encryption is required
# ENCRYPTION="-ee"
# change SYSLOG from /tmp/syslog.log to
SYSLOG=/opt/var/log/messages
#Uncomment the following for UPNP NAT traversal
NAT_TRAVERSAL=--nat-traversal
# Seed torrent after completition (YES or NO)
AUTOSEED="YES"
# Enable removing of DONE non-seeding torrents in ${TARGET} directory
FORCE_REMOVE="YES"
# If the following limit is reached watchdog will not enqueue new one
MAX_ACTIVE_TORRENTS=10
# Creating graphical log of transfer with gnuplot
# can be very site specific issue. See transmission.cgi
# how this variables are used.
GNUPLOT=/opt/bin/gnuplot
GNUPLOT_COMMAND=${WORK}/transfer.gnuplot
GNUPLOT_DATA=${WORK}/transfer.data
GNUPLOT_OUTPUT=/opt/share/www/transfer.png
HTTP_IMG_LOCATION=../transfer.png
#TZ offset in seconds. Use +- sign. DST manually
TIMEZONE_OFFSET=+3600
...
fstab looks like the following:
Code:
#device Mountpoint FStype Options Dump Pass#
/dev/discs/disc0/part1 none swap sw 0 0
/dev/discs/disc0/part2 /opt ext3 rw,noatime 1 1
/dev/discs/disc0/part3 /tmp/harddisk ext3 rw,noatime 1 1
/dev/discs/disc0/part4 /tmp/harddisk2 ext3 rw,noatime 1 1
df -h says:
Code:
Filesystem Size Used Avail Use% Mounted on
rootfs 3.0M 3.0M 0 100% /
/dev/root 3.0M 3.0M 0 100% /
/dev/discs/disc0/part2
1.9G 131M 1.7G 8% /opt
/dev/discs/disc0/part3
58G 12G 43G 22% /tmp/mnt/disc0_3
/dev/discs/disc0/part4
234G 164M 222G 1% /tmp/mnt/disc0_4
Pre-mount:
Code:
#! /bin/sh
swapon -a
for i in `awk '/ext3/{print($1)}' /etc/fstab` ; do
if [ -b $i ] ; then
grep -q $i /proc/mounts || e2fsck -p $i 2>&1 | logger -t e2fsck
else
logger -t fstab "$i is not attached"
fi
done
post-mount:
Code:
#! /bin/sh
/opt/etc/init.d/rc.unslung start
pre-shutdown
Code:
#! /bin/sh
/opt/etc/init.d/rc.unslung stop
sleep 10s
for i in `cat /proc/mounts | awk '/ext3/{print($1)}'` ; do
mount -oremount,ro $i
done
swapoff -a
sleep 1s
/opt/etc/init.d/rc.unslung looks like the following:
Code:
#! /bin/sh
# Start/stop all init scripts in /opt/etc/init.d
# starting them in numerical order and
# stopping them in reverse numerical order
#
if [ $# -ne 1 ]; then
printf "Usage: $0 {start|stop}\n" >&2
exit 1
fi
daemons=`echo $(/usr/bin/dirname $0)/S??*`
[ $1 = "stop" ] && daemons=`echo $daemons | /usr/bin/tr " " "\n" | /usr/bin/sort -r`
for i in $daemons; do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
# Write to syslog
logger -t rc.unslung "$1 service $i"
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set $1
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i $1
;;
esac
done
Thats about it! If anything more is needed please let me know!
Thanks a lot.
cheers