Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linux-modder/dfc6035b2a1d3d01a187bc29ce9fab8d to your computer and use it in GitHub Desktop.
Save linux-modder/dfc6035b2a1d3d01a187bc29ce9fab8d to your computer and use it in GitHub Desktop.
transmission-create -p -s 2048 \
-c "ISO SHA512SUM: $(cat CHECKSUM512*)" \
-t http://respins.fedorainfracloud.org:6969/announce \
-o F${RELEASE}-${SPIN_SHORT_NAME}-x86_64-${SPIN_ID}-Live.torrent \
F${RELEASE}-${SPIN_SHORT_NAME}-x86_64-${SPIN_ID}-Live.iso && \
transmission-show F${RELEASE}-${SPIN_SHORT_NAME}-x86_64-${SPIN_ID}-Live.torrent | \
awk '/Hash/{ hash = $2 } /Name/ {name = $2} END { print hash, name }' > F${RELEASE}-${SPIN_SHORT_NAME}-x86_64-${SPIN_ID}-torrenthash && \
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment