Script für mktorrent

Ein Script zum erstellen von Torrents. Einfach eine Datei oder einen Ordner angeben und mktorrent erstellt eine gleichnamige Torrentdatei.

#!/bin/bash
TAG="[TaG]"

if [ ! $1 = "" ]; then
    if [ -e "$1.torrent" ]; then
        rm "$1.torrent"
    fi
    mktorrent -v -l 21 -a http://localhost:2710/announce -n "$TAG$1" -o "$1.torrent" "$1"
    mv "$1" "$TAG$1"
else
    echo "Usage: mkt <file|dir>"
fi
exit 0

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.