summaryrefslogtreecommitdiffstats
path: root/client/engine/Registry.lib
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2011-06-28 11:28:47 +0000
committerramon <ramongomez@us.es>2011-06-28 11:28:47 +0000
commitd1fb6706422d294884d58662016cceb5ed62ef17 (patch)
treeb756a071af249b7ef49cfc5e445eb2befbfc847b /client/engine/Registry.lib
parenta7a957efaaecd7153386c375a8f1a911a6f99a5a (diff)
Congelar OpenGnSys 1.0.1 en tags/opengnsys-1.0.1opengnsys-1.0.1
git-svn-id: https://opengnsys.es/svn/tags/opengnsys-1.0.1@2087 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/Registry.lib')
-rwxr-xr-xclient/engine/Registry.lib21
1 files changed, 11 insertions, 10 deletions
diff --git a/client/engine/Registry.lib b/client/engine/Registry.lib
index 437f5102..9ca6a0e4 100755
--- a/client/engine/Registry.lib
+++ b/client/engine/Registry.lib
@@ -42,7 +42,7 @@ fi
FILE=$(ogGetHivePath "$1" "$2") || return $?
# Añadir nueva clave.
-chntpw "$FILE" << EOT 2>/dev/null
+chntpw "$FILE" << EOT &> /dev/null
cd ${3%\\*}
nk ${3##*\\}
q
@@ -89,12 +89,12 @@ case "$4" in
binary|BINARY) TYPE=3 ;;
dword|DWORD) TYPE=4 ;;
*) ogRaiseError $OG_ERR_OUTOFLIMIT "$4"
- exit $? ;;
+ return $? ;;
esac
# Devolver el dato del valor de registro.
# /* (comentario Doxygen)
-chntpw "$FILE" << EOT 2>/dev/null
+chntpw "$FILE" << EOT &> /dev/null
cd ${3%\\*}
nv $TYPE ${3##*\\}
q
@@ -138,7 +138,7 @@ fi
FILE=$(ogGetHivePath "$1" "$2") || return $?
# Añadir nueva clave.
-chntpw "$FILE" << EOT 2>/dev/null
+chntpw "$FILE" << EOT &> /dev/null
cd ${3%\\*}
dk ${3##*\\}
q
@@ -180,7 +180,7 @@ FILE=$(ogGetHivePath "$1" "$2") || return $?
# Devolver el dato del valor de registro.
# /* (comentario Doxygen)
-chntpw "$FILE" << EOT 2>/dev/null
+chntpw "$FILE" << EOT &> /dev/null
cd ${3%\\*}
dv ${3##*\\}
q
@@ -263,7 +263,7 @@ FILE=$(ogGetHivePath "$1" "$2") || return $?
# Devolver el dato del valor de registro.
# /* (comentario Doxygen)
-chntpw "$FILE" << EOT 2>/dev/null | awk '/> Value/ {getline;print $0;}'
+chntpw "$FILE" << EOT 2> /dev/null | awk '/> Value/ {getline;print $0;}'
cd ${3%\\*}
cat ${3##*\\}
q
@@ -306,7 +306,7 @@ fi
FILE=$(ogGetHivePath "$1" "$2") || return $?
# Devolver la lista de claves de registro.
-chntpw "$FILE" << EOT 2>/dev/null | awk 'BEGIN {FS="[<>]"} $1~/^ $/ {print $2}'
+chntpw "$FILE" << EOT 2> /dev/null | awk 'BEGIN {FS="[<>]"} $1~/^ $/ {print $2}'
ls $3
q
EOT
@@ -346,7 +346,7 @@ fi
FILE=$(ogGetHivePath "$1" "$2") || return $?
# Devolver la lista de claves de registro.
-chntpw "$FILE" << EOT 2>/dev/null | awk 'BEGIN {FS="[<>]"} $1~/REG_/ {print $2}'
+chntpw "$FILE" << EOT 2> /dev/null | awk 'BEGIN {FS="[<>]"} $1~/REG_/ {print $2}'
ls $3
q
EOT
@@ -387,8 +387,9 @@ fi
FILE=$(ogGetHivePath "$1" "$2") || return $?
# Cambiar el dato del valor de registro.
-chntpw "$FILE" << EOT &>/dev/null
-ed $3
+chntpw "$FILE" << EOT &> /dev/null
+cd ${3%\\*}
+ed ${3##*\\}
$4
q
y