summaryrefslogtreecommitdiffstats
path: root/client/engine/File.lib
diff options
context:
space:
mode:
Diffstat (limited to 'client/engine/File.lib')
-rwxr-xr-xclient/engine/File.lib12
1 files changed, 10 insertions, 2 deletions
diff --git a/client/engine/File.lib b/client/engine/File.lib
index 087504bb..6156e6ed 100755
--- a/client/engine/File.lib
+++ b/client/engine/File.lib
@@ -108,7 +108,7 @@ local MNTDIR FILE PREVFILE FILEPATH CURRENTDIR
# Si se solicita, mostrar ayuda.
if [ "$*" == "help" ]; then
- ogHelp "$FUNCNAME" "$FUNCNAME int_ndisk int_npartition" \
+ ogHelp "$FUNCNAME" "$FUNCNAME [ str_repo | int_ndisk int_npartition ] path_filepath" \
"$FUNCNAME \"/mnt/sda1/windows/system32\" ==> /mnt/sda1/WINDOWS/System32" \
"$FUNCNAME REPO /etc/fstab ==> /opt/opengnsys/images/etc/fstab" \
"$FUNCNAME 1 1 \"/windows/system32\" ==> /mnt/sda1/WINDOWS/System32"
@@ -122,7 +122,7 @@ case $# in
REPO|repo)
FILE="$OGIMG/$2" ;;
CACHE|cache)
- FILE="$OGCAC/$OGIMG/$2" ;;
+ FILE="$(ogMountCache)/$OGIMG/$2" ;;
CDROM|cdrom)
FILE="$(ogMountCdrom)/$2" ;;
*) ogRaiseError $OG_ERR_FORMAT
@@ -164,6 +164,14 @@ cd $CURRENTDIR
function ogGetParentPath ()
{
local PARENT
+if [ "$*" == "help" ]; then
+ ogHelp "$FUNCNAME" "$FUNCNAME [ str_repo | int_ndisk int_npartition ] path_filepath" \
+ "$FUNCNAME \"/mnt/sda1/windows/system32\" ==> /mnt/sda1/WINDOWS" \
+ "$FUNCNAME REPO /etc/fstab ==> /opt/opengnsys/images/etc" \
+ "$FUNCNAME 1 1 \"/windows/system32\" ==> /mnt/sda1/WINDOWS"
+ return
+fi
+
case $# in
1) PARENT=$(dirname "$1") ;;
2) PARENT="$1 $(dirname "/$2")" ;;