summaryrefslogtreecommitdiffstats
path: root/convert
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-03-17 22:05:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-03-17 22:05:21 +0000
commitff222086af89ba44ac861ab1e9eaeee48d761d30 (patch)
treeb70547c73b2f166369d732bb2fe27fd9eebbadcb /convert
parent2a6167b9b8a9a8799451c1037909bae6985e73aa (diff)
downloadldetect-lst-ff222086af89ba44ac861ab1e9eaeee48d761d30.tar
ldetect-lst-ff222086af89ba44ac861ab1e9eaeee48d761d30.tar.gz
ldetect-lst-ff222086af89ba44ac861ab1e9eaeee48d761d30.tar.bz2
ldetect-lst-ff222086af89ba44ac861ab1e9eaeee48d761d30.tar.xz
ldetect-lst-ff222086af89ba44ac861ab1e9eaeee48d761d30.zip
MonitorsDB is full of bad EISA_ID :-(
Diffstat (limited to 'convert')
-rw-r--r--convert/verify_MonitorsDB16
1 files changed, 16 insertions, 0 deletions
diff --git a/convert/verify_MonitorsDB b/convert/verify_MonitorsDB
new file mode 100644
index 00000000..9da8ec6f
--- /dev/null
+++ b/convert/verify_MonitorsDB
@@ -0,0 +1,16 @@
+#!/usr/bin/perl
+
+use lib qw(/usr/lib/libDrakX);
+use Xconfig::monitor;
+
+my $monitors_db = Xconfig::monitor::readMonitorsDB("../lst/MonitorsDB");
+foreach (@$monitors_db) {
+ if ($_->{EISA_ID} =~ /^\w{3}[0-9a-f]{4}$/i) {
+ # perfect!
+ } elsif ($_->{EISA_ID} =~ /^([a-z]{3})([0-9a-f]{0,3})$/i) {
+ # we can correct this
+ printf "$_->{EISA_ID} should be %s%04x\n", $1, hex($2);
+ } else {
+ print "bad EISA_ID $_->{EISA_ID}\n";
+ }
+}