7043ee66e9
This should satisfy some whiners on misc@, but please be aware that the use of this program may actually hurt satisfaction, especially if your udildo(4) wasn't attached when you created your super small and fast and broken kernel config. Remove jasper@ as MAINTAINER at his request. ok jasper@
28 lines
720 B
Plaintext
28 lines
720 B
Plaintext
$OpenBSD: patch-dmassage,v 1.2 2010/01/04 06:35:31 kili Exp $
|
|
--- dmassage.orig Sun Jan 27 13:35:53 2002
|
|
+++ dmassage Sat Jan 2 20:24:27 2010
|
|
@@ -97,14 +97,11 @@ sub parse_dmesg
|
|
{
|
|
open(DMESG, $DMESG) || die "cannot read dmesg: $!\n";
|
|
|
|
- # "mainbus0 at root" should be always there.
|
|
- $dmesgdev{"root"}{"mainbus0"}++;
|
|
-
|
|
while (<DMESG>) {
|
|
chomp;
|
|
s/\s+/ /g;
|
|
s/^ //;
|
|
- if (m/^([a-z]{2,}[0-9]+) at ([a-z]{2,}[0-9]+)/) {
|
|
+ if (m/^([a-z]{2,}[0-9]+) at ([a-z]{2,}[0-9]+|root)/) {
|
|
$dmesgdev{$2}{$1}++;
|
|
}
|
|
}
|
|
@@ -191,7 +188,6 @@ sub printdev
|
|
sub usage
|
|
{
|
|
die <<USAGE
|
|
-Type 'perldoc -F $0' to see the documentation.
|
|
Usage: dmassage [-d dmesg] <-f kernel | -s kernelconfig | -t>
|
|
USAGE
|
|
}
|