diff options
author | adv <adv@uma.es> | 2011-02-23 18:03:26 +0000 |
---|---|---|
committer | adv <adv@uma.es> | 2011-02-23 18:03:26 +0000 |
commit | 6905716c975b065a7463d9b66e645aef100bc4a0 (patch) | |
tree | e1e8b01e40143ec81a45d4c0c24e4710d478a40b /repoman/bin/torrent-creator | |
parent | 8fc955223575738aa38cbca6c2e57f3ce2248c44 (diff) |
integracion 1.0 - /bin del repo - tiket:300
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1480 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'repoman/bin/torrent-creator')
-rwxr-xr-x | repoman/bin/torrent-creator | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/repoman/bin/torrent-creator b/repoman/bin/torrent-creator index 8a14e3c6..5d43c753 100755 --- a/repoman/bin/torrent-creator +++ b/repoman/bin/torrent-creator @@ -39,6 +39,13 @@ for IMG in *.{img,pgz}; do # Crear fichero Torrent. echo "`date` : Inicio creación de fichero $TORRENT" >> $LOGFILE rm -f "$TORRENT" + ##### ADV v. 1.0 23/02/2011 + rm -f $IMG.sum + DATASUM=`md5sum "$IMG" | cut -f1 -d" "` + echo $DATASUM > $IMG.sum + nice -8 ctorrent -t "$IMG" -u $TRACKERURL -s "$TORRENT" -c $DATASUM + #### ADV v. 1.0 23/02/2011 + nice -8 ctorrent -t "$IMG" -u $TRACKERURL -s "$TORRENT" if [ -f "$TORRENT" ]; then echo "`date` : Fin creación de fichero $TORRENT" >> $LOGFILE |