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 9dfd42b was
670d639,
checked in by ramon <ramongomez@…>, 12 years ago
|
Versión 1.0.5, #568: Script generateMenuDefault es llamado por getConfiguration y toma los datos del fichero creado por éste para evitar operaciones duplicadas, reduciendo el tiempo de arranque del cliente.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3508 a21b9725-9963-47de-94b9-378ad31fedc9
|
-
Property mode set to
100755
|
File size:
1.0 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 | |
---|
| 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. |
---|
[01a36ca] | 22 | /usr/sbin/sshd 2>/dev/null |
---|
[c39fac3] | 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.