summaryrefslogtreecommitdiffstats
path: root/client/shared/etc/preinit/metadevs.sh.NoUsed
diff options
context:
space:
mode:
Diffstat (limited to 'client/shared/etc/preinit/metadevs.sh.NoUsed')
-rwxr-xr-xclient/shared/etc/preinit/metadevs.sh.NoUsed28
1 files changed, 28 insertions, 0 deletions
diff --git a/client/shared/etc/preinit/metadevs.sh.NoUsed b/client/shared/etc/preinit/metadevs.sh.NoUsed
new file mode 100755
index 00000000..0870e552
--- /dev/null
+++ b/client/shared/etc/preinit/metadevs.sh.NoUsed
@@ -0,0 +1,28 @@
+#!/bin/bash
+#/**
+#@file metadevs.sh
+#@brief Script de inicio para detectar metadispositivos LVM y RAID.
+#@note Desglose del script "loadenviron.sh".
+#@warning License: GNU GPLv3+
+#@version 0.9
+#@author Ramon Gomez, ETSII Universidad de Sevilla
+#@date 2009-10-10
+#@version 0.9.4
+#@author Ramon Gomez, ETSII Universidad de Sevilla
+#@date 2010-04-19
+#*/
+
+
+# Si está configurado OpenGNSys ...
+if [ -n "$OPENGNSYS" ]; then
+ echo "$MSG_DETECTLVMRAID"
+ # Detectar metadispositivos LVM.
+ vgchange -ay >/dev/null 2>&1
+ # Detectar metadispositivos RAID.
+ dmraid -ay >/dev/null 2>&1
+else
+ # FIXME Error: entorno de OpenGNSys no configurado.
+ echo "Error: OpenGNSys environment is not configured." # FIXME: definir mensaje.
+ exit 1
+fi
+