
Originally Posted by
Amowagou
Where to add the command?
Thanks
I just add the command sleep 30 after the routine that check to see if the HDD is ready in the /usr/local/etc/rcS file. That way everything is done (HDD mount, WIFI Plugging, USB mount etc...) before launching transmission. That kind of make the routine to see if HDD is ready redundant but I decided to keep it there just in case.
Code:
n=1
while [ ! -d /tmp/hdd/volumes/HDD1/transmission/config ] ; do
sleep 3
[ \$n -gt 30 ] && break
let n+=1
echo '#waiting for hdd..'
echo \$n
done
sleep 30
killall btpd
nice -n 0 /opt/bin/transmission-daemon --config-dir /tmp/hdd/volumes/HDD1/transmission/config --port 8080 --no-auth --download-dir /tmp/hdd/volumes/HDD1/transmission/download --dht --peerport 51413 -a "*" --peerlimit-global 60
By the way starting today after many screwing around I found that a lot of my torrents just sits at 99.xx % and won't finish. Some that even have shown as finished to not pass the torrent force verify from the menu and show up also at 99.xx % completed after the force verify ??????
Anyone else experienced this.