configurable seeder address
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 27 Aug 2011 00:26:33 +0000 (00:26 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 27 Aug 2011 00:26:33 +0000 (00:26 +0000)
torrent/start-seeder.sh

index 3bdf6bb..5585149 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/sh -xe
 
+ip=$1
+test -z "$ip" && ip=10.60.0.240
+
 rtorrent -O directory=./send/ \
 -O schedule=watch_directory,5,5,load_start=./send/watch/*.torrent \
 -O schedule=tied_directory,5,5,start_tied= \
@@ -7,6 +10,6 @@ rtorrent -O directory=./send/ \
 -O scgi_local=/tmp/rtorrent.socket \
 -O download_rate=15 \
 -O upload_rate=15 \
--O bind=10.60.0.240 \
+-O bind=$ip \
 -O peer_exchange=yes \