summaryrefslogtreecommitdiffstats
path: root/client/engine/FileSystem.lib
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2017-12-22 12:01:01 +0000
committerramon <ramongomez@us.es>2017-12-22 12:01:01 +0000
commitcade8c00300171679eace77c79570c2a58f88498 (patch)
treec7f4c7ee18ab4a07931de33dca53bdb88da380a9 /client/engine/FileSystem.lib
parent42d268a42aadfe828e0795962a8b26958b042bef (diff)
#730: Revisar funciones del motor de clonación sin mensajes de ayuda.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5543 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/FileSystem.lib')
-rwxr-xr-xclient/engine/FileSystem.lib19
1 files changed, 17 insertions, 2 deletions
diff --git a/client/engine/FileSystem.lib b/client/engine/FileSystem.lib
index 32d7c382..8dd1a87a 100755
--- a/client/engine/FileSystem.lib
+++ b/client/engine/FileSystem.lib
@@ -800,11 +800,26 @@ echo "$MNTDIR"
}
-##### PRUEBAS
-# Montar CDROM
+#/**
+# ogMountCdrom
+#@brief Monta dispositivo óptico por defecto
+#@return Punto de montaje
+#@exception OG_ERR_FORMAT Formato incorrecto.
+#@exception OG_ERR_PARTITION Tipo de particion desconocido o no se puede montar.
+#@version
+#@author
+#@date
+#*/ ##
function ogMountCdrom ()
{
local DEV MNTDIR
+# Si se solicita, mostrar ayuda.
+if [ "$*" == "help" ]; then
+ ogHelp "$FUNCNAME" "$FUNCNAME" "$FUNCNAME"
+ return
+fi
+# Error si se reciben parámetros.
+[ $# == 0 ] || ogRaiseError $OG_ERR_FORMAT || return $?
DEV="/dev/cdrom" # Por defecto
MNTDIR=$(mount | awk -v D=$DEV '{if ($1==D) {print $3}}')
if [ -z "$MNTDIR" ]; then