diff options
author | ramon <ramongomez@us.es> | 2010-02-09 18:04:18 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2010-02-09 18:04:18 +0000 |
commit | 4edc0b0138628b28eda11a62a62ef616c3e6ef50 (patch) | |
tree | c4dba56c742929d9409014a74a5441c5c9067076 /client/engine | |
parent | d725a41aa9f176c386549cec3f3692b45ae2f5e0 (diff) |
SoluciĆ³n ticket:98 en trunk; correcciones varias; engine-1.0: arranque service tracker.
git-svn-id: https://opengnsys.es/svn/trunk@749 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine')
-rwxr-xr-x | client/engine/File.lib | 12 |
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")" ;; |