@ -1,6 +1,6 @@
#!/usr/bin/perl -w
#
# Copyright (C) 2002-2007 Jean Delvare <khali@linux-fr.org>
# Copyright (C) 2002-2008 Jean Delvare <khali@linux-fr.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -17,38 +17,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301 USA.
#
# Version 0.1 2002-02-06 Jean Delvare <khali@linux-fr.org>
# Version 0.2 2002-02-16 Jean Delvare <khali@linux-fr.org>
# Fixed to work with the new, simplified /proc interface names of the eeprom
# driver (lm_sensors 2.6.3 and greater).
# Shifted data display by 4 columns left.
# Version 0.3 2002-02-17 Jean Delvare <khali@linux-fr.org>
# Added UUID field at 0x10 (added decode_uuid).
# Merged decode_string and decode_string32.
# Added unknown field at 0x20.
# Moved header and footer to BEGIN and END, respectively.
# Reformated history to match those of the other decode scripts.
# Deleted decode_char (made useless by decode_string).
# Reordered field display, changed some labels.
# Added old /proc interface check.
# Version 1.0 2002-11-15 Jean Delvare <khali@linux-fr.org>
# Gave the label "OEM Data" to the field at 0x20.
# Gave the label "Timestamp" to the field at 0xE0.
# Renamed "Model Number" to "Model Name".
# Added some documentation.
# Version 1.1 2004-01-17 Jean Delvare <khali@linux-fr.org>
# Added support for Linux 2.5/2.6 (i.e. sysfs).
# Version 1.2 2004-11-28 Jean Delvare <khali@linux-fr.org>
# Support bus number 0 to 4 instead of only 0.
# Version 1.3 2005-01-18 Jean Delvare <khali@linux-fr.org>
# Revision might be a Service Tag.
# Version 1.4 2006-09-20 Jean Delvare <khali@linux-fr.org>
# Detect and skip false positives (e.g. EDID EEPROMs).
# Version 1.5 2007-11-19 Jean Delvare <khali@linux-fr.org>
# UUID and serial number might be hidden
# The model name is actually the first half of the asset tag
# The timestamp is only 18-byte long
#
# EEPROM data decoding for Sony Vaio laptops.
#
# The eeprom driver must be loaded. For kernels older than 2.6.0, the
@ -77,7 +45,6 @@
# VGN-S260 : OK
# VGN-S4M/S : OK
# VGN-TZ11MN/N : OK
# Any feedback appreciated anyway.
#
# Thanks to Werner Heuser, Carsten Blume, Christian Gennerat, Joe Wreschnig,
# Xavier Roche, Sebastien Lefevre, Lars Heer, Steve Dobson, Kent Hunt,
@ -88,6 +55,7 @@ use strict;
use Fcntl qw(:DEFAULT :seek);
use vars qw($sysfs $found);
use constant VERSION => "1.6";
use constant ONLYROOT => "Readable only by root";
sub print_item
@ -233,9 +201,7 @@ sub vaio_decode
BEGIN
{
print("Sony Vaio EEPROM Decoder\n");
print("Copyright (C) 2002-2007 Jean Delvare\n");
print("Version 1.5\n\n");
print("# Sony Vaio EEPROM Decoder version ".VERSION." by Jean Delvare\n\n");
}
END
@ -268,6 +234,4 @@ for (my $i = 0, $found=0; $i <= 4 && !$found; $i++)
if (!$found)
{
print("Vaio EEPROM not found. Please make sure that the eeprom module is loaded.\n");
print("If you believe this is an error, please contact me <khali\@linux-fr.org>\n");
print("so that we may see how to fix the problem.\n");
}