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
Line | |
---|
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 | |
---|
14 | # Adpatar la clave de "root" para acceso SSH. |
---|
15 | PASS=$(grep "^[ ]*\(export \)\?OPTIONS=" /scripts/ogfunctions 2>&1 | \ |
---|
16 | sed 's/\(.*\)pass=\(\w*\)\(.*\)/\2/') |
---|
17 | PASS=${PASS:-"og"} |
---|
18 | echo -ne "$PASS\n$PASS\n" | passwd root 2>/dev/null |
---|
19 | # Cargar el entorno OpenGnSys en conexión SSH. |
---|
20 | cp -a $OPENGNSYS/etc/preinit/loadenviron.sh /etc/profile.d/ |
---|
21 | # Arrancar SSH. |
---|
22 | /usr/sbin/sshd 2>/dev/null |
---|
23 | |
---|
24 | # Desactivado apagado de monitor. |
---|
25 | #setterm -blank 0 -powersave off -powerdown 0 < /dev/console > /dev/console 2>&1 |
---|
26 | |
---|
27 | # Activado WOL en la interfaz usada en arranque PXE. |
---|
28 | #ethtool -s $DEVICE wol g 2>/dev/null |
---|
29 | |
---|
30 | # TODO Localizar correctamente el script de arranque. |
---|
31 | [ -f /opt/opengnsys/scripts/runhttplog.sh ] && /opt/opengnsys/scripts/runhttplog.sh 2>/dev/null |
---|
32 | |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.