X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=sysdump;h=177424c6b839b2f111ebb4f24a7aeb3eeaf242d2;hb=d116a7a066ded40f839b9d24d181c6e6cc933fad;hp=17c2b9fbce785a3db4730824b3539d4cbe178c78;hpb=2ffc71217b46c8995985f852d6c62fdb92a6bf79;p=grml-hwinfo.git diff --git a/sysdump b/sysdump index 17c2b9f..177424c 100755 --- a/sysdump +++ b/sysdump @@ -62,7 +62,15 @@ sub dump_value($$) my $level = shift; my $file = shift; - open (FILE, "<$file") || print "can't open $file: $!"; + if ($file =~ "/sys/kernel/debug/.*") { + print("ignoring file $file\n"); + return 0; + } + + if (!open (FILE, "<$file")) { + print STDERR "can't open $file: '$!'\n"; + return 0; + } my $value; { local $/;