summaryrefslogtreecommitdiffstats
path: root/client/shared/etc/preinit/default.sh
blob: 2624edc41b3865f24d0e32f4c66cf4334d960549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

# Cargar entorno de OpenGnSys
set -a
source /opt/opengnsys/etc/preinit/loadenviron.sh

# Scripts de inicio.
for f in fileslinks loadmodules metadevs mountrepo poweroff otherservices; do
    $OGETC/preinit/$f.sh
done
unset f

if [ -f $OGETC/init/$OG_IP.sh ]; then
    $OGETC/init/$OG_IP.sh

elif [ -f $OGETC/init/$OGGROUP.sh ]; then
    $OGETC/init/$OGGROUP.sh

elif [ -f $OGETC/init/default.sh ]; then
    $OGETC/init/default.sh

else
    echo "No se ha encontrado script de inicio"
    halt
fi