summaryrefslogtreecommitdiffstats
path: root/client/shared/etc/init/default.sh
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2011-03-17 15:36:55 +0000
committerramon <ramongomez@us.es>2011-03-17 15:36:55 +0000
commitd34384901d1c1313fe2410378792971841dd2864 (patch)
treea005e68d864042cfde90cd296b4e49231a9a708c /client/shared/etc/init/default.sh
parentde87b1a74e877a2a8cc591352b4bd9acabfd838c (diff)
Rama version1.0: Modificado proceso de arranque de cliente para montar repositorio en escritura para el modo administrador.
Close #334. git-svn-id: https://opengnsys.es/svn/branches/version1.0@1554 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/etc/init/default.sh')
-rwxr-xr-xclient/shared/etc/init/default.sh19
1 files changed, 6 insertions, 13 deletions
diff --git a/client/shared/etc/init/default.sh b/client/shared/etc/init/default.sh
index c8285c28..e5e1a34f 100755
--- a/client/shared/etc/init/default.sh
+++ b/client/shared/etc/init/default.sh
@@ -1,11 +1,11 @@
#!/bin/bash
+# TODO Separar esta sección en otro script
+# Lanzar servicios complementarios del cliente.
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
+ethtool -s $DEVICE wol g 2>/dev/null
# Fichero de registro de incidencias (en el servidor; si no, en local).
OPENGNSYS=${OPENGNSYS:-/opt/opengnsys}
@@ -13,20 +13,13 @@ 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
-
+LOGLEVEL=5
# 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
+ [ $ogactiveadmin == "true" ] && boot=admin
+ $OPENGNSYS/bin/ogAdmClient -f $OPENGNSYS/etc/ogAdmClient.cfg -l $OGLOGFILE -d $LOGLEVEL
fi
# Si fallo en cliente y modo "admin", cargar shell; si no, salir.