summaryrefslogtreecommitdiffstats
path: root/repoman
diff options
context:
space:
mode:
Diffstat (limited to 'repoman')
-rwxr-xr-xrepoman/bin/sendFileMcast6
-rwxr-xr-xrepoman/bin/torrent-creator7
2 files changed, 11 insertions, 2 deletions
diff --git a/repoman/bin/sendFileMcast b/repoman/bin/sendFileMcast
index ee934503..92237a50 100755
--- a/repoman/bin/sendFileMcast
+++ b/repoman/bin/sendFileMcast
@@ -59,5 +59,7 @@ CERROR="8x8/128"
# Envío de fichero por Multicast.
which mbuffer &> /dev/null && MBUFFER="--pipe 'mbuffer -m 20M'"
-udp-sender $MBUFFER --portbase $PORTBASE --$METHOD --mcast-data-address $ADDRESS --fec $CERROR --max-bitrate $BITRATE --ttl 1 --min-clients $NCLIENTS --max-wait $MAXTIME --file "$FICHIMG"
-
+##### ADV v. 1.0 23/02/2011
+#version 0.10 # udp-sender $MBUFFER --portbase $PORTBASE --$METHOD --mcast-data-address $ADDRESS --fec $CERROR --max-bitrate $BITRATE --ttl 1 --min-clients $NCLIENTS --max-wait $MAXTIME --file "$FICHIMG"
+udp-sender $MBUFFER --nokbd --retries-until-drop 65 --portbase $PORTBASE --$METHOD --mcast-data-address $ADDRESS --fec $CERROR --max-bitrate $BITRATE --ttl 1 --min-clients $NCLIENTS --max-wait $MAXTIME --file "$FICHIMG"
+##### ADV v. 1.0 23/02/2011
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