diff options
author | alonso <alonso@us.es> | 2013-03-08 17:22:04 +0000 |
---|---|---|
committer | alonso <alonso@us.es> | 2013-03-08 17:22:04 +0000 |
commit | 39975933ca1bbd6bd8c77343f7582b036c910229 (patch) | |
tree | dd836f1ef1031c71f06d16091f6ff18c7b5628bb /admin/Interface | |
parent | b120b777236a180acb8e0df7720de8786814d6ae (diff) |
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3673 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Interface')
-rwxr-xr-x | admin/Interface/Configurar | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/admin/Interface/Configurar b/admin/Interface/Configurar index d98776f4..77419237 100755 --- a/admin/Interface/Configurar +++ b/admin/Interface/Configurar @@ -9,8 +9,19 @@ particiones=$(echo $2 | awk '{n=split($0,sep,"$");print n}') + +#___________________________________________________________________ +# +# Activa navegador para ver progreso +#___________________________________________________________________ + + coproc /opt/opengnsys/bin/browser -qws http://localhost/cgi-bin/httpd-log.sh + +#___________________________________________________________________ + declare -a TBP declare -a TBF + for ((par=1;par<$particiones;par++)); do TBP[$par]=$(echo $2 | awk -v p=$par '{ @@ -31,6 +42,7 @@ for ((par=1;par<$particiones;par++)); done # Prepara cadena de particiones _______________________________________ + cP="" for ((par=1;par<$particiones;par++)); do @@ -64,7 +76,21 @@ for ((par=1;par<$particiones;par++)); }') done - ogCreatePartitions $1 $cP + +# Crea tabla de particiones MSDOS +ogCreatePartitionTable 1 MSDOS + +# Desmonta todas las particiones y la caché + ogUnmountCache + ogUnmountAll 1 + + echo "Creando la tabla de particiones $1 $cP" | tee -a $OGLOGSESSION $OGLOGFILE + ogCreatePartitions $1 $cP + + #ogDeletePartitionTable 1 + #ogSetPartitionActive 1 1 + #ogUpdatePartitionTable 1 + #ms-sys /dev/sda | grep unknow && ms-sys /dev/sda # Formatear _______________________________________ @@ -74,8 +100,17 @@ for ((par=1;par<$particiones;par++)); if [ $sfi == "EMPTY" ]; then TBF[$par]=" " else + echo "Formateando particion: $par con sistema de fichero: $sfi" | tee -a $OGLOGSESSION $OGLOGFILE ogFormatFs $1 $par $sfi fi done +#___________________________________________________________________ +# +# Retorno +#___________________________________________________________________ + + kill $COPROC_PID + exit 0 + |