diff options
author | ramon <ramongomez@us.es> | 2011-03-02 17:39:59 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2011-03-02 17:39:59 +0000 |
commit | 2338c95f5ab7569bbce01178ea1426555271e5a4 (patch) | |
tree | d1744759c0d0c578191210f08cab9e71c095b0e9 /client/shared/etc/init/default.sh | |
parent | 803bc36238663cda57898d83bc90b7a3d232b60f (diff) |
Rama version1.0:
* Redistribución de directorios para el cliente.
* Modificación del instalador para adaptarse a la nueva estructura de directorios.
* Desinstalador quita los recursos de OpenGnSys en Samba.
* Documentación actualizada para la nueva versión.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1526 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/etc/init/default.sh')
-rwxr-xr-x | client/shared/etc/init/default.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/client/shared/etc/init/default.sh b/client/shared/etc/init/default.sh new file mode 100755 index 00000000..c8285c28 --- /dev/null +++ b/client/shared/etc/init/default.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +echo -ne "og\nog\n" | passwd root + +/etc/init.d/ssh restart +#setterm -blank 0 -powersave off -powerdown 0 < /dev/console > /dev/console 2>&1 + +ethtool -s $DEVICE wol g + +# Fichero de registro de incidencias (en el servidor; si no, en local). +OPENGNSYS=${OPENGNSYS:-/opt/opengnsys} +OGLOGFILE=${OGLOGFILE:-$OPENGNSYS/log/${ogGetIpAdderss},log} +if ! touch $OGLOGFILE 2>/dev/null; then + OGLOGFILE=/var/log/opengnsys.log +fi + + + + +if [ $ogactiveadmin == "true" ] +then + export boot=admin +fi + + +# Arranque de OpenGnSys Client. +if [ -x "$OPENGNSYS/bin/ogAdmClient" ]; then + echo "$MSG_LAUNCHCLIENT" + $OPENGNSYS/bin/ogAdmClient -f $OPENGNSYS/etc/ogAdmClient.cfg -l $OGLOGFILE -d 5 +fi + +# Si fallo en cliente y modo "admin", cargar shell; si no, salir. +if [ "$boot" == "admin" ]; then + bash +fi |