summaryrefslogtreecommitdiffstats
path: root/client/shared/etc/preinit/default.sh
diff options
context:
space:
mode:
Diffstat (limited to 'client/shared/etc/preinit/default.sh')
-rwxr-xr-xclient/shared/etc/preinit/default.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/client/shared/etc/preinit/default.sh b/client/shared/etc/preinit/default.sh
new file mode 100755
index 00000000..539c12fe
--- /dev/null
+++ b/client/shared/etc/preinit/default.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# Cargar entorno de OpenGnSys
+set -a
+source /opt/opengnsys/etc/preinit/loadenviron.sh
+
+# Scripts de inicio.
+for f in fileslinks loadmodules mountrepo; 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