From 12e8e382a3d6182434be849980b10ba7e04d098b Mon Sep 17 00:00:00 2001 From: ramon Date: Fri, 27 Apr 2012 09:58:24 +0000 Subject: Versión 1.0.4, #489: Integrar ticket:489 en rama de desarrollo. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.0@2993 a21b9725-9963-47de-94b9-378ad31fedc9 --- repoman/bin/torrent-creator | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'repoman') diff --git a/repoman/bin/torrent-creator b/repoman/bin/torrent-creator index fe5aebf3..61765ed5 100755 --- a/repoman/bin/torrent-creator +++ b/repoman/bin/torrent-creator @@ -44,9 +44,9 @@ for IMG in *.{img,pgz}; do touch "$LOCKFILE" trap "rm -f $LOCKFILE" 1 2 3 6 9 rm -f "$TORRENT" "$SUMFILE" - DATASUM=`md5sum "$IMG" | cut -f1 -d" "` + DATASUM=$(tail -c1M "$IMG" | md5sum -b | cut -f1 -d" ") echo $DATASUM > "$SUMFILE" - nice -8 ctorrent -t "$IMG" -u $TRACKERURL -s "$TORRENT" -c $DATASUM 2>/dev/null + nice -8 ctorrent -t "$IMG" -u $TRACKERURL -s "$TORRENT" -c $DATASUM 2>/dev/null rm -f "$LOCKFILE" if [ -f "$TORRENT" ]; then echo "`date` : Fin creación de fichero $TORRENT" >> $LOGFILE -- cgit v1.2.3-18-g5258