Scripts de gestión de repositorio independientes de la API del motor de clonación.
git-svn-id: https://opengnsys.es/svn/trunk@1085 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/debian-pkg
parent
52ead998ef
commit
85b029fc5e
|
@ -814,10 +814,8 @@ function openGnsysCopyServerFiles () {
|
|||
client/boot/udeblist-jaunty.conf \
|
||||
client/boot/udeblist-karmic.conf \
|
||||
client/boot/udeblist-lucid.conf \
|
||||
client/nfsexport/bin/udp-sender \
|
||||
client/nfsexport/bin/udp-receiver \
|
||||
client/nfsexport/scripts/sendFileMcast \
|
||||
server/PXE/pxelinux.cfg/default \
|
||||
repoman/bin \
|
||||
doc )
|
||||
local TARGETS=( bin/initrd-generator \
|
||||
bin/upgrade-clients-udeb.sh \
|
||||
|
@ -825,10 +823,8 @@ function openGnsysCopyServerFiles () {
|
|||
etc/udeblist-jaunty.conf \
|
||||
etc/udeblist-karmic.conf \
|
||||
etc/udeblist-lucid.conf \
|
||||
bin/udp-sender \
|
||||
bin/udp-receiver \
|
||||
bin/sendFileMcast \
|
||||
tftpboot/pxelinux.cfg/default \
|
||||
bin \
|
||||
doc )
|
||||
|
||||
if [ ${#SOURCES[@]} != ${#TARGETS[@]} ]; then
|
||||
|
|
|
@ -281,6 +281,7 @@ function updateServerFiles () {
|
|||
client/boot/udeblist-jaunty.conf \
|
||||
client/boot/udeblist-karmic.conf \
|
||||
client/boot/udeblist-lucid.conf \
|
||||
repoman/bin \
|
||||
doc )
|
||||
local TARGETS=( bin/initrd-generator \
|
||||
bin/upgrade-clients-udeb.sh \
|
||||
|
@ -288,6 +289,7 @@ function updateServerFiles () {
|
|||
etc/udeblist-jaunty.conf \
|
||||
etc/udeblist-karmic.conf \
|
||||
etc/udeblist-lucid.conf \
|
||||
bin \
|
||||
doc )
|
||||
|
||||
if [ ${#SOURCES[@]} != ${#TARGETS[@]} ]; then
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
OpenGnSys Repository Manager RREADME
|
||||
=======================================
|
||||
|
||||
|
||||
Este directorio contiene la estructura de datos del repositorio de datos de OpenGnSys.
|
||||
|
||||
- bin binarios y scripts de gestión del repositorio.
|
||||
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
#@brief Envía un fichero por multicast ORIGEN(fichero) DESTINO(sessionmulticast)
|
||||
#@param path_file Camino completo del fichero a enviar
|
||||
#@param str_session Datos de sesión (Puerto:Duplex:IP:Mpbs:Nclientes:Timeout)
|
||||
|
||||
|
||||
PROG=$(basename $0)
|
||||
|
||||
# Si se solicita, mostrar ayuda.
|
||||
if [ "$*" == "help" ]; then
|
||||
echo "Formato: $PROG fichero datosMulticast"
|
||||
echo "Ejemplo: $PROG /opt/opengnsys/images/PS1_PH1.img 9000:full-duplex:239.194.17.2:70M:20:300"
|
||||
exit 0
|
||||
fi
|
||||
# Error si no se reciben 2 parámetros.
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "Error: Formato: $PROG fichero datosMulticast" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Parámetros de sesión separado por ":".
|
||||
OIFS=$IFS; IFS=':'
|
||||
read -e PORTBASE METHOD ADDRESS BITRATE NCLIENTS MAXTIME <<<"$2"
|
||||
IFS=$OIFS
|
||||
|
||||
# FIXME Comprobación consistencia de parámetros.
|
||||
|
||||
# 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 "$1"
|
||||
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue