summaryrefslogtreecommitdiffstats
path: root/admin/Interface/getConfiguration
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2013-03-04 11:26:35 +0000
committerramon <ramongomez@us.es>2013-03-04 11:26:35 +0000
commit7aed2cca6d61823b5f9a668eb37b69ed4555aec2 (patch)
tree399bf06f2504b7dca612ce5c2698d10e4c66b7ff /admin/Interface/getConfiguration
parent14ed3c9cf2e6843c39f125dad16309fec05b0751 (diff)
Resolver errata en script {{{getConfiguration}}}, indicando 0 particiones cuando no se detecta la tabla de particiones de un disco.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3653 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Interface/getConfiguration')
-rwxr-xr-xadmin/Interface/getConfiguration1
1 files changed, 1 insertions, 0 deletions
diff --git a/admin/Interface/getConfiguration b/admin/Interface/getConfiguration
index 4e2a5f63..8b28b75a 100755
--- a/admin/Interface/getConfiguration
+++ b/admin/Interface/getConfiguration
@@ -11,6 +11,7 @@ cfg=""
disks=$(ogDiskToDev | wc -w)
for ((dsk=1; dsk<=$disks; dsk++)); do
particiones=$(ogGetPartitionsNumber $dsk)
+ particiones=${particiones:-0}
# Tipo de tabla de particiones: 1=MSDOS, 2=GPT
ptt=$(ogGetPartitionTableType $dsk)
case "$ptt" in