summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2011-10-17 11:55:06 +0000
committerramon <ramongomez@us.es>2011-10-17 11:55:06 +0000
commitbfc4d9c50a4ed59069ed22b78c39f0f63fc52b2e (patch)
treeeaabd004946b9a78f4a7185bd905bcc0c74ce530
parentf81a4debd67f919c04350355d244facc108f4cf0 (diff)
Versión 1.0.2: No usar extensión por defecto para el envío de fichero por Multicast (modifica #448).
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2350 a21b9725-9963-47de-94b9-378ad31fedc9
-rwxr-xr-xrepoman/bin/sendFileMcast12
1 files changed, 3 insertions, 9 deletions
diff --git a/repoman/bin/sendFileMcast b/repoman/bin/sendFileMcast
index 39f6a947..bf7091e0 100755
--- a/repoman/bin/sendFileMcast
+++ b/repoman/bin/sendFileMcast
@@ -23,18 +23,15 @@ if [ $# -ne 2 ]; then
exit 1
fi
-# Fichero de imagen (camino completo o nombre de imagen sin extensión).
+# Fichero a enviar (camino completo o relativo al directorio del repositorio).
FICH="$1"
if [ "${FICH:0:1}" != "/" ]; then
- for EXT in pgz img; do
- FICHIMG="$OGIMG/$FICH.$EXT"
- [ -r "$FICHIMG" ] && break
- done
+ FICHIMG="$OGIMG/$FICH"
else
FICHIMG="$FICH"
fi
if [ ! -f "$FICHIMG" ]; then
- echo "$PROG Error: Fichero \"$FICH\" no accesible"
+ echo "$PROG Error: Fichero \"$FICHIMG\" no accesible"
exit 2
fi
@@ -59,8 +56,5 @@ CERROR="8x8/128"
# Envío de fichero por Multicast.
which mbuffer &> /dev/null && MBUFFER="--pipe 'mbuffer -m 20M'"
-##### 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"
$OGBIN/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