refs #1609 set PATH and PYTHONPATH up
parent
7387b12cb9
commit
fa788953c1
|
@ -25,20 +25,24 @@ if [ -d $OPENGNSYS ]; then
|
|||
export OGETC=$OPENGNSYS/etc
|
||||
export OGLIB=$OPENGNSYS/lib
|
||||
export OGAPI=$OGLIB/engine/bin
|
||||
export OGPYFUNCS=$OPENGNSYS/functions
|
||||
export OGSCRIPTS=$OPENGNSYS/scripts
|
||||
export OGIMG=$OPENGNSYS/images
|
||||
export OGCAC=$OPENGNSYS/cache
|
||||
export OGLOG=$OPENGNSYS/log
|
||||
|
||||
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
|
||||
export PATH=$OGSCRIPTS:$OGPYFUNCS:$PATH:$OGBIN
|
||||
export PYTHONPATH=$OPENGNSYS/lib/python3
|
||||
|
||||
# Exportar parámetros del kernel.
|
||||
for i in $(cat /proc/cmdline); do
|
||||
echo $i | grep -q "=" && export $i
|
||||
done
|
||||
|
||||
|
||||
# Cargar sysctls
|
||||
sysctl -p &>/dev/null
|
||||
|
||||
# Cargar fichero de idioma.
|
||||
LANGFILE=$OGETC/lang.${LANG%@*}.conf
|
||||
if [ -f $LANGFILE ]; then
|
||||
|
|
Loading…
Reference in New Issue