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 | |
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')
-rwxr-xr-x | repoman/bin/sendFileMcast | 6 | ||||
-rwxr-xr-x | repoman/bin/torrent-creator | 7 |
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 |