diff options
author | albertogp <albertogp@uma.es> | 2021-04-27 21:37:56 +0200 |
---|---|---|
committer | albertogp <albertogp@uma.es> | 2021-05-04 12:55:29 +0200 |
commit | 1306eb0cf6244cf1c3c8d1e9acc0e4ea781fb3cc (patch) | |
tree | 62056e685dd45858a9fde1b677336ce6c46ae6c1 /admin/Interface/getConfiguration | |
parent | 56c079ad5c48e367f8c37d901de72c1e38f5a104 (diff) |
"#ID-1037 Preparando todos los ficheros para versión 1.2.1"
Diffstat (limited to 'admin/Interface/getConfiguration')
-rwxr-xr-x | admin/Interface/getConfiguration | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/admin/Interface/getConfiguration b/admin/Interface/getConfiguration index ddfc3821..b58dcbd6 100755 --- a/admin/Interface/getConfiguration +++ b/admin/Interface/getConfiguration @@ -12,6 +12,9 @@ export DEBUG="no" ser=$(ogGetSerialNumber) cfg="" +#AGP ----- +cfgd="" +#AGP ----- disks=$(ogDiskToDev | wc -w) for ((dsk=1; dsk<=$disks; dsk++)); do particiones=$(ogGetPartitionsNumber $dsk) @@ -25,6 +28,11 @@ for ((dsk=1; dsk<=$disks; dsk++)); do ZPOOL) ptt=4 ;; *) ptt=0 ;; esac + #AGP ----------------------------------------------------------------------- + # Información Tipo de Disco DISK o NVM + tdisk=$(ogDiskToDev $dsk) + cfgd="$cfgd$dsk:0:$ptt:::$(ogGetDiskSize $dsk):0:$(ogGetDiskType $tdisk);" + #AGP ----------------------------------------------------------------------- # Información de disco (partición 0) cfg="$cfg$dsk:0:$ptt:::$(ogGetDiskSize $dsk):0;" for ((par=1;par<=$particiones;par++)); do @@ -64,6 +72,11 @@ done # Guardar salida en fichero temporal. cfgfile=/tmp/getconfig echo "${ser:+$ser;}$cfg" > $cfgfile +#AGP ---------------------------------- +# Guardar salida en fichero temporal. +cfgfiled=/tmp/getconfigd +echo "${ser:+$ser;}$cfgd" > $cfgfiled +#AGP ---------------------------------- # Crear el menú por defecto a partir del fichero generado (no dar ninguna salida). generateMenuDefault &>/dev/null @@ -84,5 +97,4 @@ awk '{ n=split($0,sep,";"); rm -f /mnt/*/ogboot.* /mnt/*/*/ogboot.* # Volver a registrar los errores. -unset DEBUG - +unset DEBUG
\ No newline at end of file |