918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Line | |
---|
1 | #!/bin/bash |
---|
2 | PARM=`cat` |
---|
3 | |
---|
4 | BASEDIR=/opt/opengnsys |
---|
5 | REPONAME=ogAdmRepo |
---|
6 | REPOLOG=$BASEDIR/log/$REPONAME.log |
---|
7 | |
---|
8 | |
---|
9 | PARM1=$(echo $PARM | cut -f1 -d" ") |
---|
10 | PARM2=$(echo $PARM | cut -f2 -d" ") |
---|
11 | PARM3=$(echo $PARM | cut -f3 -d" ") |
---|
12 | PARM4=$(echo $PARM | cut -f4 -d" ") |
---|
13 | |
---|
14 | |
---|
15 | case $PARM1 in |
---|
16 | START_MULTICAST) |
---|
17 | #1 START_MULTICAST |
---|
18 | #2 fichero a enviar |
---|
19 | #3 opciones de multicast |
---|
20 | FILE=/opt/opengnsys/images$PARM2 |
---|
21 | MCASTOPT=$PARM3 |
---|
22 | echo "/opt/opengnsys/bin/sendFileMcast $FILE $MCASTOPT" >> $REPOLOG |
---|
23 | /opt/opengnsys/bin/sendFileMcast $FILE $MCASTOPT >> $REPOLOG |
---|
24 | echo $? >> $REPOLOG |
---|
25 | ;; |
---|
26 | default) |
---|
27 | echo "Solicitud con parametros: - $PARM - no realizada: No registrada o con errores" >> $REPOLOG |
---|
28 | ;; |
---|
29 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.