source: client/shared/etc/preinit/default.sh @ 1b42de9

ogClonningEnginetest-python-scriptsticket-693ticket-700
Last change on this file since 1b42de9 was 1b42de9, checked in by Antonio Emmanuel Guerrero Silva <aguerrero@…>, 7 months ago

refs #700 shared files fix errors

  • Property mode set to 100755
File size: 688 bytes
Line 
1#!/bin/bash
2
3# Cargar entorno de OpenGnsys
4set -a
5source /opt/opengnsys/etc/preinit/loadenviron.sh
6
7echo "OGBIN: $OGBIN"
8echo "OGETC: $OGETC"
9echo "OGLIB: $OGLIB"
10echo "OGAPI: $OGAPI"
11echo "OGSCRIPTS: $OGSCRIPTS"
12echo "OGIMG: $OGIMG"
13echo "OGCAC: $OGCAC"
14echo "OGLOG: $OGLOG"
15
16# Scripts de inicio.
17for f in fileslinks loadmodules metadevs mountrepo poweroff otherservices; do
18    $OGETC/preinit/$f.sh
19done
20unset f
21
22if [ -f $OGETC/init/$IPV4ADDR.sh ]; then
23    $OGETC/init/$OG_IP.sh
24
25elif [ -f $OGETC/init/$OGGROUP.sh ]; then
26    $OGETC/init/$OGGROUP.sh
27
28elif [ -f $OGETC/init/default.sh ]; then
29    $OGETC/init/default.sh
30
31else
32    echo "No se ha encontrado script de inicio"
33    halt
34fi
Note: See TracBrowser for help on using the repository browser.