source: client/shared/etc/init/default.sh @ 71b9d337

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

version 1.0.2 #421 httpd-log inicio en default.sh

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

  • Property mode set to 100755
File size: 1.6 KB
Line 
1#!/bin/bash
2
3# TODO Separar esta sección en otro script
4
5#httd-log-status
6cp /opt/opengnsys/lib/httpd/10-cgi.conf /etc/lighttpd/conf-enabled/
7/etc/init.d/lighttpd start
8chmod  755 /opt
9cp /opt/opengnsys/lib/httpd/* /usr/lib/cgi-bin
10#TODO:
11dstat -dn 10 > /tmp/bandwidth &
12export OGLOGTRACK=/tmp/track.log
13export OGLOGSTANDAR=/tmp/standar.log
14touch  $OGLOGTRACK
15touch  $OGLOGSTANDAR
16touch  ${OGLOGTRACK}.tmp
17chmod 777 $OGLOGTRACK
18chmod 777 $OGLOGSTANDAR
19chmod 777 ${OGLOGTRACK}.tmp
20echo "preparado" >> $OGLOGSTANDAR
21# http-log-status
22
23# Lanzar servicios complementarios del cliente.
24echo -ne "og\nog\n" | passwd root
25#Compatibilidad ssh con el boot-tools 1.0.2
26/usr/sbin/sshd
27#setterm -blank 0 -powersave off -powerdown 0 < /dev/console > /dev/console 2>&1
28ethtool -s $DEVICE wol g 2>/dev/null
29
30# Fichero de registro de incidencias (en el servidor; si no, en local).
31OPENGNSYS=${OPENGNSYS:-/opt/opengnsys}
32OGLOGFILE=${OGLOGFILE:-$OPENGNSYS/log/${ogGetIpAdderss},log}
33if ! touch $OGLOGFILE 2>/dev/null; then
34    OGLOGFILE=/var/log/opengnsys.log
35fi
36LOGLEVEL=5
37
38#facilitando el entorno Og desde ssh
39cp $OPENGNSYS/etc/preinit/loadenviron.sh /etc/profile.d/
40# Crear menú por defecto para el cliente
41generateMenuDefault
42
43#Matando plymount para inicir browser o shell
44pkill -9 plymouthd
45
46
47# Arranque de OpenGnSys Client.
48if [ -x "$OPENGNSYS/bin/ogAdmClient" ]; then
49    echo "$MSG_LAUNCHCLIENT"
50    [ $ogactiveadmin == "true" ] && boot=admin
51    $OPENGNSYS/bin/ogAdmClient -f $OPENGNSYS/etc/ogAdmClient.cfg -l $OGLOGFILE -d $LOGLEVEL
52fi
53
54# Si fallo en cliente y modo "admin", cargar shell; si no, salir.
55if [ "$boot" == "admin" ]; then
56    bash
57fi
Note: See TracBrowser for help on using the repository browser.