helm/shell/+rtorrent/bin/rtorrent-stop-all

9 lines
210 B
Plaintext
Raw Normal View History

2017-09-02 10:10:48 -07:00
#!/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