Changeset 5030
- Timestamp:
- 11/19/07 23:27:26 (6 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
prog/eeprom/decode-vaio.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/CHANGES
r5024 r5030 10 10 Program decode-dimms.pl: Fix DDR2 SDRAM module speed decoding 11 11 Update manufacturer IDs. 12 Program decode-vaio.pl: Private data might not be readable by non-root users 12 13 Program pwmconfig: Better diagnostics in pwmdisable 13 14 Give the fans some time to spin up -
lm-sensors/trunk/prog/eeprom/decode-vaio.pl
r4164 r5030 1 1 #!/usr/bin/perl -w 2 2 # 3 # Copyright (C) 2002-200 6Jean Delvare <khali@linux-fr.org>3 # Copyright (C) 2002-2007 Jean Delvare <khali@linux-fr.org> 4 4 # 5 5 # This program is free software; you can redistribute it and/or modify … … 44 44 # Version 1.4 2006-09-20 Jean Delvare <khali@linux-fr.org> 45 45 # Detect and skip false positives (e.g. EDID EEPROMs). 46 # Version 1.5 2007-11-19 Jean Delvare <khali@linux-fr.org> 47 # UUID and serial number might be hidden 46 48 # 47 49 # EEPROM data decoding for Sony Vaio laptops. … … 82 84 use vars qw($sysfs $found); 83 85 86 use constant ONLYROOT => "Readable only by root"; 87 84 88 sub print_item 85 89 { … … 176 180 } 177 181 178 return($string); 182 if ($string eq '00000000-0000-0000-0000-000000000000') 183 { 184 return(ONLYROOT); 185 } 186 else 187 { 188 return($string); 189 } 179 190 } 180 191 … … 188 199 189 200 print_item('Machine Name', $name); 190 print_item('Serial Number', decode_string($bus, $addr, 192, 32)); 201 my $serial = decode_string($bus, $addr, 192, 32); 202 print_item('Serial Number', $serial ? $serial : ONLYROOT); 191 203 print_item('UUID', decode_uuid($bus, $addr, 16)); 192 204 my $revision = decode_string($bus, $addr, 160, 10); … … 202 214 { 203 215 print("Sony Vaio EEPROM Decoder\n"); 204 print("Copyright (C) 2002-200 6Jean Delvare\n");205 print("Version 1. 4\n\n");216 print("Copyright (C) 2002-2007 Jean Delvare\n"); 217 print("Version 1.5\n\n"); 206 218 } 207 219
