summaryrefslogtreecommitdiffstats
path: root/client/engine
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2011-12-05 14:20:35 +0000
committerramon <ramongomez@us.es>2011-12-05 14:20:35 +0000
commitb1f562fbdb4d70306c5726d0df6985bd6a43e487 (patch)
treed19ffd1eba0c5befad9d83519979221a55f8a6ab /client/engine
parent2fba27f91c1757f4a217ab8865eb7b4992d22ef0 (diff)
FunciĆ³n {{{ogGetOsVersion}}} detecta Windwos de 64 bits.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2388 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine')
-rwxr-xr-xclient/engine/Inventory.lib3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/engine/Inventory.lib b/client/engine/Inventory.lib
index b610639e..b1173dd7 100755
--- a/client/engine/Inventory.lib
+++ b/client/engine/Inventory.lib
@@ -76,12 +76,13 @@ case "$(ogGetFsType $1 $2)" in
FILE="$MNTDIR/etc/arch-release"
[ -r $FILE ] && VERSION="Arch Linux"
fi
- [ -e $MNTDIR/lib64 ] && VERSION="$VERSION 64 bits"
+ [ -e $MNTDIR/lib64 ] && VERSION="$VERSION $MSG_64BIT"
;;
NTFS | HNTFS | FAT32 | HFAT32)
TYPE="Windows"
# Para Windows: leer la version del registro.
VERSION=$(ogGetRegistryValue $MNTDIR software '\Microsoft\Windows NT\CurrentVersion\ProductName')
+ [ -n "$(ogGetRegistryValue $MNTDIR software '\Microsoft\Windows\CurrentVersion\ProgramW6432Dir' 2>/dev/null)" ] && VERSION="$VERSION $MSG_64BIT"
;;
esac