summaryrefslogtreecommitdiffstats
path: root/repoman/bin
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2012-04-27 09:58:24 +0000
committerramon <ramongomez@us.es>2012-04-27 09:58:24 +0000
commit12e8e382a3d6182434be849980b10ba7e04d098b (patch)
tree312cc4f815ea848271e52b47e0304a274d60c841 /repoman/bin
parent62777700aaed829606baac38dc1e722beca89bb5 (diff)
Versión 1.0.4, #489: Integrar ticket:489 en rama de desarrollo.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2993 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'repoman/bin')
-rwxr-xr-xrepoman/bin/torrent-creator4
1 files changed, 2 insertions, 2 deletions
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