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

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 db8fdd2 was eb9424f, checked in by ramon <ramongomez@…>, 14 years ago

branches/version1.0: aplicar cambios de la rama trunk para desarrollar version 1.0.1

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

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