summaryrefslogtreecommitdiffstats
path: root/client/shared/etc/preinit/loadenviron.sh
diff options
context:
space:
mode:
Diffstat (limited to 'client/shared/etc/preinit/loadenviron.sh')
-rwxr-xr-xclient/shared/etc/preinit/loadenviron.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/client/shared/etc/preinit/loadenviron.sh b/client/shared/etc/preinit/loadenviron.sh
index af891534..c23fcc80 100755
--- a/client/shared/etc/preinit/loadenviron.sh
+++ b/client/shared/etc/preinit/loadenviron.sh
@@ -23,7 +23,8 @@ if [ -d $OPENGNSYS ]; then
export OGCAC=$OPENGNSYS/cache
export OGLOG=$OPENGNSYS/log
- export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/opt/og2fs/2ndfs/opt/drbl/sbin
+ export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/opt/oglive/rootfs/opt/drbl/sbin
+
export PATH=$OGSCRIPTS:$PATH:$OGAPI:$OGBIN
# Exportar parámetros del kernel.
@@ -64,9 +65,15 @@ if [ -d $OPENGNSYS ]; then
# Fichero de registros.
export OGLOGFILE="$OGLOG/$(ogGetIpAddress).log"
+ # Configuracion de la red (valido offline)
+ cat /tmp/initrd.cfg | grep DEVICECFG && export $(cat /tmp/initrd.cfg | grep DEVICECFG)
+ source $DEVICECFG 2>/dev/null
+
# FIXME Pruebas para grupos de ordenadores
#export OGGROUP=$(ogGetGroup)
export OGGROUP="$group"
+
+ ROOTREPO=${ROOTREPO:-"$OGSERVERIMAGES"}
fi
# Declaración de códigos de error.