summaryrefslogtreecommitdiffstats
path: root/admin/Interface
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2013-09-25 12:18:43 +0000
committerramon <ramongomez@us.es>2013-09-25 12:18:43 +0000
commitaaf78bd4c302b7b45e34f4bebb65ce3f32f8de6f (patch)
tree6a87be311af73832efe1b9fc1bd07cc324511187 /admin/Interface
parent94a8b2c192f403911f46e175c42d49c14d05da52 (diff)
ConfiguraciĆ³n por defecto para clientes sin disco, evitando errores en el servidor.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4047 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Interface')
-rwxr-xr-xadmin/Interface/getConfiguration3
1 files changed, 3 insertions, 0 deletions
diff --git a/admin/Interface/getConfiguration b/admin/Interface/getConfiguration
index 8b28b75a..997d642e 100755
--- a/admin/Interface/getConfiguration
+++ b/admin/Interface/getConfiguration
@@ -43,6 +43,9 @@ for ((dsk=1; dsk<=$disks; dsk++)); do
done
done
+# Crear configuraciĆ³n por defecto para cliente sin disco.
+[ -z "$cfg" ] && cfg="1:0:0:::0;"
+
# Guardar salida en fichero temporal.
cfgfile=/tmp/getconfig
echo $cfg > $cfgfile