mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 04:05:53 +02:00
IPFireSeeder oeffnet automatisch Ports.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@828 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -20,7 +20,13 @@ case "${1}" in
|
||||
start)
|
||||
boot_mesg "Starting IPFire Seeder..."
|
||||
cd /var/log/seeder
|
||||
loadproc screen -dmS seeder /usr/bin/rtorrent /var/ipfire/seeder/*.torrent
|
||||
loadproc screen -dmS seeder /usr/bin/rtorrent -o port_range=35700-35705 \
|
||||
/var/ipfire/seeder/*.torrent
|
||||
if ! grep -q "35700:35705" /var/ipfire/xtaccess/config ; then
|
||||
echo "tcp,0.0.0.0/0,35700:35705,on,0.0.0.0,IPFireSeeder" >> /var/ipfire/xtaccess/config
|
||||
echo "udp,0.0.0.0/0,35700:35705,on,0.0.0.0,IPFireSeeder" >> /var/ipfire/xtaccess/config
|
||||
/usr/local/bin/setxtaccess
|
||||
fi
|
||||
;;
|
||||
|
||||
stop)
|
||||
|
||||
Reference in New Issue
Block a user