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 0a735488 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
|
Rev | Line | |
---|
[914d834] | 1 | #!/bin/bash |
---|
[c39fac3] | 2 | # Proceso general de arranque de OpenGnSys Client. |
---|
[914d834] | 3 | |
---|
[383fe4b] | 4 | |
---|
[7af582e] | 5 | # Fichero de registro de incidencias (en el servidor; si no, en local). |
---|
[077dd7c5] | 6 | OPENGNSYS=${OPENGNSYS:-/opt/opengnsys} |
---|
[c39fac3] | 7 | OGLOGFILE=${OGLOGFILE:-$OPENGNSYS/log/$(ogGetIpAdderss).log} |
---|
[7af582e] | 8 | if ! touch $OGLOGFILE 2>/dev/null; then |
---|
| 9 | OGLOGFILE=/var/log/opengnsys.log |
---|
| 10 | fi |
---|
[d343849] | 11 | LOGLEVEL=5 |
---|
[914d834] | 12 | |
---|
[3d00dd9b] | 13 | # Matando plymount para inicir browser o shell |
---|
[1ab18778] | 14 | pkill -9 plymouthd |
---|
| 15 | |
---|
[3d00dd9b] | 16 | # Arranque de OpenGnSys Client daemon (web services). |
---|
| 17 | if [ -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 |
---|
| 20 | fi |
---|
| 21 | |
---|
| 22 | # Arranque de OpenGnSys Client daemon (socket). |
---|
[077dd7c5] | 23 | if [ -x "$OPENGNSYS/bin/ogAdmClient" ]; then |
---|
[c39fac3] | 24 | echo "${MSG_LAUNCHCLIENT:-.}" |
---|
[5acde60] | 25 | [ "$ogactiveadmin" == "true" ] && boot="admin" |
---|
[9e900be] | 26 | # Indicar fichero de teclado de Qt para el idioma especificado (tipo "es.qmap"). |
---|
[e538e62] | 27 | [ -f /usr/local/etc/${LANG%_*}.qmap ] && export QWS_KEYBOARD="TTY:keymap=/usr/local/etc/${LANG%_*}.qmap" |
---|
[9e900be] | 28 | # Ejecutar servicio cliente. |
---|
[d343849] | 29 | $OPENGNSYS/bin/ogAdmClient -f $OPENGNSYS/etc/ogAdmClient.cfg -l $OGLOGFILE -d $LOGLEVEL |
---|
[077dd7c5] | 30 | fi |
---|
| 31 | |
---|
[7af582e] | 32 | # Si fallo en cliente y modo "admin", cargar shell; si no, salir. |
---|
| 33 | if [ "$boot" == "admin" ]; then |
---|
| 34 | bash |
---|
| 35 | fi |
---|
[c39fac3] | 36 | |
---|
| 37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.