helm/shell/+rtorrent/bin/rtorrent-stop-all
2017-09-02 19:10:48 +02:00

9 lines
210 B
Bash

#!/usr/bin/env bash
# Pause all torrents from outside rtorrent, in case rtorrent is crashing on
# startup.
for i in ~/rtorrent/.session/*.torrent.rtorrent; do
sed -i -re 's/5:statei1e/5:statei0e' $i
done