aboutsummaryrefslogtreecommitdiffstats
path: root/monitor-parse-edid
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-01-06 11:32:50 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-01-06 11:32:50 +0000
commit54f02a371ddc8c651c41fb65180ec7e56048283f (patch)
treef271b2be2bb51959d4bc08dfadcc351f0405d561 /monitor-parse-edid
parent5da569d0c7348089a681175e4eac5901fbf649b4 (diff)
downloadmonitor-edid-54f02a371ddc8c651c41fb65180ec7e56048283f.tar
monitor-edid-54f02a371ddc8c651c41fb65180ec7e56048283f.tar.gz
monitor-edid-54f02a371ddc8c651c41fb65180ec7e56048283f.tar.bz2
monitor-edid-54f02a371ddc8c651c41fb65180ec7e56048283f.tar.xz
monitor-edid-54f02a371ddc8c651c41fb65180ec7e56048283f.zip
have the acpi EDID file in the perl output
Diffstat (limited to 'monitor-parse-edid')
-rwxr-xr-xmonitor-parse-edid5
1 files changed, 3 insertions, 2 deletions
diff --git a/monitor-parse-edid b/monitor-parse-edid
index 3d63b79..c542fe4 100755
--- a/monitor-parse-edid
+++ b/monitor-parse-edid
@@ -451,11 +451,11 @@ GetOptions(
'MonitorsDB' => \ (my $MonitorsDB),
) or usage();
-my $F;
+my ($file, $F);
if (@ARGV == 0) {
$F = *STDIN;
} elsif (@ARGV == 1) {
- open($F, $ARGV[0]) or usage();
+ open($F, $file = $ARGV[0]) or usage();
} else {
usage();
}
@@ -468,6 +468,7 @@ my $edid = parse_edid($raw_edid);
if (my $err = check_parsed_edid($edid)) {
die "$err\n";
}
+$edid->{file} = $file if $file;
if ($raw_perl) {
use Data::Dumper;