From 8fc955223575738aa38cbca6c2e57f3ce2248c44 Mon Sep 17 00:00:00 2001 From: adv Date: Wed, 23 Feb 2011 17:41:35 +0000 Subject: OG 1.0 ticket:299 instalador git-svn-id: https://opengnsys.es/svn/branches/version1.0@1479 a21b9725-9963-47de-94b9-378ad31fedc9 --- admin/Sources/Services/ogAdmRepoAux | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 admin/Sources/Services/ogAdmRepoAux (limited to 'admin/Sources/Services/ogAdmRepoAux') diff --git a/admin/Sources/Services/ogAdmRepoAux b/admin/Sources/Services/ogAdmRepoAux new file mode 100755 index 00000000..af13f093 --- /dev/null +++ b/admin/Sources/Services/ogAdmRepoAux @@ -0,0 +1,26 @@ +#!/bin/bash +PARM=`cat` + + +PARM1=$(echo $PARM | cut -f1 -d" ") +PARM2=$(echo $PARM | cut -f2 -d" ") +PARM3=$(echo $PARM | cut -f3 -d" ") +PARM4=$(echo $PARM | cut -f4 -d" ") + +echo $PARM +echo $PARM1 +echo $PARM2 +echo $PARM3 +echo $PARM4 + +case $PARM1 in + START_MULTICAST) + #1 START_MULTICAST + #2 fichero a enviar + FILE=/opt/opengnsys/images$PARM2 + MCASTOPT=$PARM3 + #3 opciones protocolo multicast + echo "/opt/opengnsys/bin/SendFileMcast $FILE $MCASTOPT" + /opt/opengnsys/bin/sendFileMcast $FILE $MCASTOPT + ;; +esac \ No newline at end of file -- cgit v1.2.3-18-g5258