#!/bin/bash ARCH=$(uname -m) MOTTO=$(cat motto) for iso in $@; do if [ -f ${iso} ]; then if [ -f ${iso}.torrent ]; then rm -vf ${iso}.torrent; fi mktorrent -c "${MOTTO}" \ -a http://tracker.openbittorrent.com/announce \ -a http://tracker.publicbt.com/announce \ -v \ -w http://repo.parabolagnulinux.org/isos/${ARCH}/$(basename ${iso}) \ ${iso} fi done