source: client/shared/etc/init/default.sh @ 6495c7c

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-instalacion
Last change on this file since 6495c7c was 62b1446, checked in by ramon <ramongomez@…>, 9 years ago

#724: Utilizar definitivamente la variable ogactiveadmin en lugar de boot para seleccionar el modo de arranque administrador del cliente, el cual no era detectado en distribuciones ogLive basadas en Ubuntu 15.10.

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

  • Property mode set to 100755
File size: 1.1 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 (socket).
17echo "${MSG_LAUNCHCLIENT:-.}"
18# Indicar fichero de teclado de Qt para el idioma especificado (tipo "es.qmap").
19[ -f /usr/local/etc/${LANG%_*}.qmap ] && export QWS_KEYBOARD="TTY:keymap=/usr/local/etc/${LANG%_*}.qmap"
20
21if [ -x "$OPENGNSYS/bin/ogAdmClient" -a "$ogstatus" != "offline"  ]; then
22    # Ejecutar servicio cliente.
23    $OPENGNSYS/bin/ogAdmClient -f $OPENGNSYS/etc/ogAdmClient.cfg -l $OGLOGFILE -d $LOGLEVEL
24else
25    for FILE in index $OGGROUP $(ogGetIpAddress)
26    do
27        [ -f $OGCAC/menus/$FILE.html ] && OGMENU="$OGCAC/menus/$FILE.html"
28    done
29    $OPENGNSYS/bin/browser -qws $OGMENU
30fi
31
32# Si fallo en cliente y modo "admin", cargar shell; si no, salir.
33if [ "$ogactiveadmin" == "true" ]; then
34    bash
35fi
36
37
Note: See TracBrowser for help on using the repository browser.