6 test -d torrent/md5 || mkdir torrent/md5
8 torrent="torrent/md5/$1.torrent"
11 if [ ! -f $file ] ; then
16 if [ ! -e $torrent ] ; then
18 eval export `grep s1 /var/lib/extrausers/group | cut -d: -f4`
20 # -p prevents sharing between clients
21 mktorrent --announce http://$tracker_ip:$tracker_port/announce --no-date --verbose --output $torrent $file
25 test -d torrent/seed || mkdir torrent/seed
26 test -d torrent/download || mkdir torrent/download
28 ln -fv `pwd`/$file torrent/download/
29 ln -sfv `pwd`/$torrent torrent/seed/