source: client/shared/etc/init/default.sh @ aab6c6e

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
Last change on this file since aab6c6e was 5acde60, checked in by ramon <ramongomez@…>, 11 years ago

#541 #645: Modificar función ogGetOsVersion para detectar Grub como última opción mostrando bien el sistema operativo instalado junto al cargador; evitar mensajes de error en el arranque si no está definida la variable ogactiveadmin.

git-svn-id: https://opengnsys.es/svn/branches/version1.0@4369 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 1.2 KB
Line 
1#!/bin/bash
2# Proceso general de arranque de OpenGnSys Client.
3
4
5# Fichero de registro de incidencias (en el servidor; si no, en local).
6OPENGNSYS=${OPENGNSYS:-/opt/opengnsys}
7OGLOGFILE=${OGLOGFILE:-$OPENGNSYS/log/$(ogGetIpAdderss).log}
8if ! touch $OGLOGFILE 2>/dev/null; then
9    OGLOGFILE=/var/log/opengnsys.log
10fi
11LOGLEVEL=5
12
13# Matando plymount para inicir browser o shell
14pkill -9 plymouthd
15
16# Arranque de OpenGnSys Client daemon (web services).
17if [ -x $OPENGNSYS/job_executer/init.d/job_executer ]; then
18    echo "Running Opengnsys client daemon (web services)"
19    $OPENGNSYS/job_executer/init.d/job_executer restart
20fi
21
22# Arranque de OpenGnSys Client daemon (socket).
23if [ -x "$OPENGNSYS/bin/ogAdmClient" ]; then
24    echo "${MSG_LAUNCHCLIENT:-.}"
25    [ "$ogactiveadmin" == "true" ] && boot="admin"
26    # Indicar fichero de teclado de Qt para el idioma especificado (tipo "es.qmap").
27    [ -f /usr/local/etc/${LANG%_*}.qmap ] && export QWS_KEYBOARD="TTY:keymap=/usr/local/etc/${LANG%_*}.qmap"
28    # Ejecutar servicio cliente.
29    $OPENGNSYS/bin/ogAdmClient -f $OPENGNSYS/etc/ogAdmClient.cfg -l $OGLOGFILE -d $LOGLEVEL
30fi
31
32# Si fallo en cliente y modo "admin", cargar shell; si no, salir.
33if [ "$boot" == "admin" ]; then
34    bash
35fi
36
37
Note: See TracBrowser for help on using the repository browser.