source: client/shared/etc/preinit/metadevs.sh @ 20324f2

Last change on this file since 20324f2 was de687e3, checked in by ramon <ramongomez@…>, 10 years ago

#673: Integrar código de la versión 1.0.6 en rama principal.

git-svn-id: https://opengnsys.es/svn/trunk@4641 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 759 bytes
Line 
1#!/bin/bash
2#/**
3#@file    metadevs.sh
4#@brief   Script de inicio para detectar metadispositivos LVM y RAID.
5#@note    Desglose del script "loadenviron.sh".
6#@warning License: GNU GPLv3+
7#@version 0.9
8#@author  Ramon Gomez, ETSII Universidad de Sevilla
9#@date    2009-10-10
10#@version 0.9.4
11#@author  Ramon Gomez, ETSII Universidad de Sevilla
12#@date    2010-04-19
13#*/
14
15
16# Si está configurado OpenGNSys ...
17if [ -n "$OPENGNSYS" ]; then
18    echo "$MSG_DETECTLVMRAID"
19    # Detectar metadispositivos LVM.
20    vgchange -ay &>/dev/null
21    # Detectar metadispositivos RAID.
22    dmraid -ay &>/dev/null
23else
24    # FIXME Error: entorno de OpenGNSys no configurado.
25    echo "Error: OpenGNSys environment is not configured."   # FIXME: definir mensaje.
26    exit 1
27fi
28
Note: See TracBrowser for help on using the repository browser.