source: client/shared/etc/init/default.sh @ d04dbaa

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 d04dbaa was d04dbaa, checked in by adv <adv@…>, 14 years ago

trunk - branches1.0 #418 Servicio sshd del cliente iniciado correctamente.

git-svn-id: https://opengnsys.es/svn/branches/version1.0@2084 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 1.1 KB
RevLine 
[914d834]1#!/bin/bash
2
[d343849]3# TODO Separar esta sección en otro script
4# Lanzar servicios complementarios del cliente.
[914d834]5echo -ne "og\nog\n" | passwd root
[ab2470c]6#Compatibilidad ssh con el boot-tools 1.0.2
[d04dbaa]7/usr/sbin/sshd
[914d834]8#setterm -blank 0 -powersave off -powerdown 0 < /dev/console > /dev/console 2>&1
[d343849]9ethtool -s $DEVICE wol g 2>/dev/null
[383fe4b]10
[7af582e]11# Fichero de registro de incidencias (en el servidor; si no, en local).
[077dd7c5]12OPENGNSYS=${OPENGNSYS:-/opt/opengnsys}
[7af582e]13OGLOGFILE=${OGLOGFILE:-$OPENGNSYS/log/${ogGetIpAdderss},log}
14if ! touch $OGLOGFILE 2>/dev/null; then
15    OGLOGFILE=/var/log/opengnsys.log
16fi
[d343849]17LOGLEVEL=5
[914d834]18
[eb9424f]19#facilitando el entorno Og desde ssh
20cp $OPENGNSYS/etc/preinit/loadenviron.sh /etc/profile.d/
[5eb61a6]21# Crear menú por defecto para el cliente
22generateMenuDefault
[eb9424f]23
[7af582e]24# Arranque de OpenGnSys Client.
[077dd7c5]25if [ -x "$OPENGNSYS/bin/ogAdmClient" ]; then
[11956a9]26    echo "$MSG_LAUNCHCLIENT"
[d343849]27    [ $ogactiveadmin == "true" ] && boot=admin
28    $OPENGNSYS/bin/ogAdmClient -f $OPENGNSYS/etc/ogAdmClient.cfg -l $OGLOGFILE -d $LOGLEVEL
[077dd7c5]29fi
30
[7af582e]31# Si fallo en cliente y modo "admin", cargar shell; si no, salir.
32if [ "$boot" == "admin" ]; then
33    bash
34fi
Note: See TracBrowser for help on using the repository browser.