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 b242c72 was
e7d4fbb7,
checked in by ramon <ramongomez@…>, 7 years ago
|
#730: Cambios menores:
- Correcciones en comentarios.
- Corrección al actualizar la BD.
- Incluir
curl en lista de paquetes a instalar en ogLive.
- Volver a activar Wake-On-Lan al arrancar clientes.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5601 a21b9725-9963-47de-94b9-378ad31fedc9
|
-
Property mode set to
100755
|
File size:
1.1 KB
|
Rev | Line | |
---|
[c39fac3] | 1 | #!/bin/bash |
---|
| 2 | #/** |
---|
| 3 | #@file otherservices.sh |
---|
| 4 | #@brief Script de inicio para cargar otros servicios complementarios. |
---|
| 5 | #@version 1.0.3 |
---|
| 6 | #@author Ramon Gomez, ETSII Universidad de Sevilla |
---|
| 7 | #@date 2012-01-12 |
---|
| 8 | #*/ |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | # Lanzar servicios complementarios del cliente. |
---|
| 12 | echo "${MSG_OTHERSERVICES:-.}" |
---|
| 13 | |
---|
[7db6a34] | 14 | # Iniciar rsyslog, si es necesario. |
---|
| 15 | [ -S /dev/log ] || service rsyslog start |
---|
| 16 | |
---|
[c39fac3] | 17 | # Adpatar la clave de "root" para acceso SSH. |
---|
| 18 | PASS=$(grep "^[ ]*\(export \)\?OPTIONS=" /scripts/ogfunctions 2>&1 | \ |
---|
| 19 | sed 's/\(.*\)pass=\(\w*\)\(.*\)/\2/') |
---|
| 20 | PASS=${PASS:-"og"} |
---|
| 21 | echo -ne "$PASS\n$PASS\n" | passwd root 2>/dev/null |
---|
[5bfead0] | 22 | # Cargar el entorno OpenGnsys en conexión SSH. |
---|
[c39fac3] | 23 | cp -a $OPENGNSYS/etc/preinit/loadenviron.sh /etc/profile.d/ |
---|
| 24 | # Arrancar SSH. |
---|
[01a36ca] | 25 | /usr/sbin/sshd 2>/dev/null |
---|
[c39fac3] | 26 | |
---|
| 27 | # Desactivado apagado de monitor. |
---|
| 28 | #setterm -blank 0 -powersave off -powerdown 0 < /dev/console > /dev/console 2>&1 |
---|
| 29 | |
---|
| 30 | # Activado WOL en la interfaz usada en arranque PXE. |
---|
[e7d4fbb7] | 31 | ethtool -s $DEVICE wol g 2>/dev/null |
---|
[c39fac3] | 32 | |
---|
| 33 | # TODO Localizar correctamente el script de arranque. |
---|
| 34 | [ -f /opt/opengnsys/scripts/runhttplog.sh ] && /opt/opengnsys/scripts/runhttplog.sh 2>/dev/null |
---|
| 35 | |
---|
| 36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.