Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Override settings in `.rtorrent.rc`:
- **MAX_UPLOADS** overrides `max_uploads`.
- **DOWNLOAD_RATE** overrides `download_rate`.
- **UPLOAD_RATE** overrides `upload_rate`.
- **PORT_RANGE** overrides `port_range` (*6801-6810*).

## Requirement

Expand Down
4 changes: 4 additions & 0 deletions rootfs/usr/local/bin/docktorrent
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ chown -R www-data:www-data /rtorrent
sed -i '/^upload_rate =/d' /root/.rtorrent.rc
echo "upload_rate = ${UPLOAD_RATE}" >> /root/.rtorrent.rc
}
[ "${PORT_RANGE}" ] && {
sed -i '/^port_range =/d' /root/.rtorrent.rc
echo "port_range = ${PORT_RANGE}" >> /root/.rtorrent.rc
}

# Turn off all logs
[ "${LOGS_OFF}" == "yes" ] || [ "${LOGS_OFF}" == "y" ] && {
Expand Down