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 | |
---|
3 | # TODO Separar esta sección en otro script |
---|
4 | # Lanzar servicios complementarios del cliente. |
---|
5 | echo -ne "og\nog\n" | passwd root |
---|
6 | /etc/init.d/ssh restart |
---|
7 | #setterm -blank 0 -powersave off -powerdown 0 < /dev/console > /dev/console 2>&1 |
---|
8 | ethtool -s $DEVICE wol g 2>/dev/null |
---|
9 | |
---|
10 | # Fichero de registro de incidencias (en el servidor; si no, en local). |
---|
11 | OPENGNSYS=${OPENGNSYS:-/opt/opengnsys} |
---|
12 | OGLOGFILE=${OGLOGFILE:-$OPENGNSYS/log/${ogGetIpAdderss},log} |
---|
13 | if ! touch $OGLOGFILE 2>/dev/null; then |
---|
14 | OGLOGFILE=/var/log/opengnsys.log |
---|
15 | fi |
---|
16 | LOGLEVEL=5 |
---|
17 | |
---|
18 | # Arranque de OpenGnSys Client. |
---|
19 | if [ -x "$OPENGNSYS/bin/ogAdmClient" ]; then |
---|
20 | echo "$MSG_LAUNCHCLIENT" |
---|
21 | [ $ogactiveadmin == "true" ] && boot=admin |
---|
22 | $OPENGNSYS/bin/ogAdmClient -f $OPENGNSYS/etc/ogAdmClient.cfg -l $OGLOGFILE -d $LOGLEVEL |
---|
23 | fi |
---|
24 | |
---|
25 | # Si fallo en cliente y modo "admin", cargar shell; si no, salir. |
---|
26 | if [ "$boot" == "admin" ]; then |
---|
27 | bash |
---|
28 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.