summaryrefslogtreecommitdiffstats
path: root/admin/Interface
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2014-10-15 12:05:09 +0000
committerramon <ramongomez@us.es>2014-10-15 12:05:09 +0000
commit9a1df17f3d3d4d1c331e7333298563b443178df1 (patch)
tree1f954496f8469ac7cf55d15ae6a91322ab96dd8b /admin/Interface
parentd32ebd8f1d0858d76158698e193f9914aaf98f5c (diff)
#611 #640: Adaptar scripts a las funciones {{{ogEcho}}} y {{{ogExecAndLog}}} para que el código sea más legible.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4405 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Interface')
-rwxr-xr-xadmin/Interface/Configurar12
1 files changed, 6 insertions, 6 deletions
diff --git a/admin/Interface/Configurar b/admin/Interface/Configurar
index a10143f3..661f4d57 100755
--- a/admin/Interface/Configurar
+++ b/admin/Interface/Configurar
@@ -112,21 +112,21 @@ ogUnmountAll $dis &>/dev/null
# Elimina la tabla de particiones
ogDeletePartitionTable $dis
-ogUpdatePartitionTable $dis | tee -a $OGLOGSESSION $OGLOGFILE
+ogExecAndLog session log ogUpdatePartitionTable $dis
# Crea tabla de particiones MSDOS (NOTA: adaptar para tablas GPT).
ogCreatePartitionTable $dis MSDOS
# Cuestión caché
if [ "$che" == "1" ]; then
- initCache $tch >/dev/null | tee -a $OGLOGSESSION $OGLOGFILE
+ ogExecAndLog session log initCache $tch
fi
# Definir particionado.
-ogCreatePartitions $dis ${TBP[@]} | tee -a $OGLOGSESSION $OGLOGFILE
-ogUpdatePartitionTable $dis | tee -a $OGLOGSESSION $OGLOGFILE
+ogExecAndLog session log ogCreatePartitions $dis ${TBP[@]}
+ogExecAndLog session log ogUpdatePartitionTable $dis
-RETVAL=$?
+RETVAL=$?
if [ $RETVAL -ne 0 ]; then
kill $COPROC_PID
exit $RETVAL
@@ -136,7 +136,7 @@ fi
for ((par=1; par<=$maxp; par++)); do
sfi="${TBF[par]}"
if [ "$sfi" != "EMPTY" ]; then
- ogFormatFs $dis $par $sfi | tee -a $OGLOGSESSION $OGLOGFILE
+ ogExecAndLog session log ogFormatFs $dis $par $sfi
RETVAL=$?
if [ $RETVAL -ne 0 ]; then
kill $COPROC_PID