From 4edc0b0138628b28eda11a62a62ef616c3e6ef50 Mon Sep 17 00:00:00 2001 From: ramon Date: Tue, 9 Feb 2010 18:04:18 +0000 Subject: SoluciĆ³n ticket:98 en trunk; correcciones varias; engine-1.0: arranque service tracker. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/trunk@749 a21b9725-9963-47de-94b9-378ad31fedc9 --- client/engine/File.lib | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'client/engine/File.lib') 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")" ;; -- cgit v1.2.3-18-g5258