patch-dmassage 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. $OpenBSD: patch-dmassage,v 1.3 2014/01/07 17:41:23 sthen Exp $
  2. --- dmassage.orig Sun Jan 27 12:35:53 2002
  3. +++ dmassage Tue Jan 7 09:48:54 2014
  4. @@ -97,14 +97,11 @@ sub parse_dmesg
  5. {
  6. open(DMESG, $DMESG) || die "cannot read dmesg: $!\n";
  7. - # "mainbus0 at root" should be always there.
  8. - $dmesgdev{"root"}{"mainbus0"}++;
  9. -
  10. while (<DMESG>) {
  11. chomp;
  12. s/\s+/ /g;
  13. s/^ //;
  14. - if (m/^([a-z]{2,}[0-9]+) at ([a-z]{2,}[0-9]+)/) {
  15. + if (m/^([a-z]{2,}[0-9]+) at ([a-z]{2,}[0-9]+|root)/) {
  16. $dmesgdev{$2}{$1}++;
  17. }
  18. }
  19. @@ -191,7 +188,6 @@ sub printdev
  20. sub usage
  21. {
  22. die <<USAGE
  23. -Type 'perldoc -F $0' to see the documentation.
  24. Usage: dmassage [-d dmesg] <-f kernel | -s kernelconfig | -t>
  25. USAGE
  26. }
  27. @@ -214,6 +210,8 @@ B<dmassage> - dmesg parser
  28. =cut
  29. +=back
  30. +
  31. =head1 DESCRIPTION
  32. B<dmassage> parses your system's dmesg to learn which devices are
  33. @@ -265,5 +263,15 @@ B<< dmassage -s GENERIC >SMALLKERNEL >>
  34. Camiel Dobbelaar <cd@sentia.nl>
  35. http://www.sentia.org/projects/dmassage
  36. +
  37. +=head1 CAVEATS
  38. +
  39. +dmassage does not fully support recent OpenBSD releases and
  40. +will often no longer directly create a working kernel configuration
  41. +file; in most cases you will need to make additional changes yourself.
  42. +
  43. +Additionally, note that using a custom kernel is unsupported.
  44. +If reporting any OS bugs, be sure to verify that they still occur
  45. +with GENERIC or GENERIC.MP.
  46. =cut