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 | #Compatibilidad ssh con el boot-tools 1.0.2 |
---|
7 | /usr/sbin/sshd |
---|
8 | #setterm -blank 0 -powersave off -powerdown 0 < /dev/console > /dev/console 2>&1 |
---|
9 | ethtool -s $DEVICE wol g 2>/dev/null |
---|
10 | |
---|
11 | # Fichero de registro de incidencias (en el servidor; si no, en local). |
---|
12 | OPENGNSYS=${OPENGNSYS:-/opt/opengnsys} |
---|
13 | OGLOGFILE=${OGLOGFILE:-$OPENGNSYS/log/${ogGetIpAdderss},log} |
---|
14 | if ! touch $OGLOGFILE 2>/dev/null; then |
---|
15 | OGLOGFILE=/var/log/opengnsys.log |
---|
16 | fi |
---|
17 | LOGLEVEL=5 |
---|
18 | |
---|
19 | #facilitando el entorno Og desde ssh |
---|
20 | cp $OPENGNSYS/etc/preinit/loadenviron.sh /etc/profile.d/ |
---|
21 | # Crear menú por defecto para el cliente |
---|
22 | generateMenuDefault |
---|
23 | |
---|
24 | #Matando plymount para inicir browser o shell |
---|
25 | pkill -9 plymouthd |
---|
26 | |
---|
27 | |
---|
28 | # Arranque de OpenGnSys Client. |
---|
29 | if [ -x "$OPENGNSYS/bin/ogAdmClient" ]; then |
---|
30 | echo "$MSG_LAUNCHCLIENT" |
---|
31 | [ $ogactiveadmin == "true" ] && boot=admin |
---|
32 | $OPENGNSYS/bin/ogAdmClient -f $OPENGNSYS/etc/ogAdmClient.cfg -l $OGLOGFILE -d $LOGLEVEL |
---|
33 | fi |
---|
34 | |
---|
35 | # Si fallo en cliente y modo "admin", cargar shell; si no, salir. |
---|
36 | if [ "$boot" == "admin" ]; then |
---|
37 | bash |
---|
38 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.