summaryrefslogtreecommitdiffstats
path: root/admin/Interface/getConfiguration
diff options
context:
space:
mode:
authoralbertogp <albertogp@uma.es>2021-04-27 21:37:56 +0200
committeralbertogp <albertogp@uma.es>2021-04-27 21:37:56 +0200
commitcb978b76ee851192784a078d02c1694899ce7d75 (patch)
tree4e00d29f7675cc4a78797bf6317909e7f47663f5 /admin/Interface/getConfiguration
parented89e603e0b4c9d1bff617df9c127031001ed008 (diff)
"#ID-1037 Preparando todos los ficheros para versión 1.2.1"
Diffstat (limited to 'admin/Interface/getConfiguration')
-rwxr-xr-xadmin/Interface/getConfiguration16
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