summaryrefslogtreecommitdiffstats
path: root/client/shared/etc/preinit/metadevs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'client/shared/etc/preinit/metadevs.sh')
-rwxr-xr-xclient/shared/etc/preinit/metadevs.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/client/shared/etc/preinit/metadevs.sh b/client/shared/etc/preinit/metadevs.sh
new file mode 100755
index 00000000..d9b12d45
--- /dev/null
+++ b/client/shared/etc/preinit/metadevs.sh
@@ -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
+ # Detectar metadispositivos RAID.
+ dmraid -ay &>/dev/null
+else
+ # FIXME Error: entorno de OpenGNSys no configurado.
+ echo "Error: OpenGNSys environment is not configured." # FIXME: definir mensaje.
+ exit 1
+fi
+