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
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 |
---|
| 22 | # Cargar el entorno OpenGnSys en conexión SSH. |
---|
| 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. |
---|
[cf1bcce] | 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.