Merge branch 'devel' of gituser@opengnsys.es:/git/opengnsys.git into devel
commit
3aa81a4e1e
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script takes the IPlocal variable of the repository
|
||||
# and returns the system interface
|
||||
# Alfredo Luque <aluque@soleta.eu>
|
||||
|
||||
source /opt/opengnsys/etc/ogAdmRepo.cfg
|
||||
|
||||
ip addr show | grep $IPlocal | cut -f2 | awk '{ print $NF }'
|
|
@ -9,7 +9,8 @@ OPENGNSYS=${OPENGNSYS:-"/opt/opengnsys"}
|
|||
OGIMG=$OPENGNSYS/images
|
||||
OGBIN=$OPENGNSYS/bin
|
||||
PATH=$PATH:$OGBIN
|
||||
|
||||
REPO_IFACE="$(/opt/opengnsys/bin/getRepoIface)"
|
||||
|
||||
# Si se solicita, mostrar ayuda.
|
||||
if [ "$*" == "help" ]; then
|
||||
echo "Formato: $PROG fichero|nombreImagen datosMulticast"
|
||||
|
@ -57,5 +58,5 @@ CERROR="8x8/128"
|
|||
# Envío de fichero por Multicast.
|
||||
# Se desabilita el uso de mbuffer: eesta versión del upd-sender no la admite.
|
||||
#which mbuffer &> /dev/null && MBUFFER="--pipe 'mbuffer -m 20M'"
|
||||
$OGBIN/udp-sender $MBUFFER --nokbd --retries-until-drop 65 --portbase $PORTBASE --$METHOD --mcast-data-address $ADDRESS --fec $CERROR --max-bitrate $BITRATE --ttl 16 --min-clients $NCLIENTS --max-wait $MAXTIME --file "$FICHIMG"
|
||||
$OGBIN/udp-sender $MBUFFER --nokbd --retries-until-drop 65 --portbase $PORTBASE --$METHOD --interface $REPO_IFACE --mcast-data-address $ADDRESS --fec $CERROR --max-bitrate $BITRATE --ttl 16 --min-clients $NCLIENTS --max-wait $MAXTIME --file "$FICHIMG"
|
||||
|
||||
|
|
Loading…
Reference in New Issue