[BACK]Return to post_dmesg_to_nycbug CVS log [TXT][DIR] Up to [local] / openbsd / update_openbsd

Diff for /openbsd/update_openbsd/post_dmesg_to_nycbug between version 1.1 and 1.3

version 1.1, 2015/02/22 19:22:08 version 1.3, 2015/02/23 16:10:07
Line 7 
Line 7 
   
 # This script posts your OpenBSD dmesg to the NYC*BUG dmesg archive.  # This script posts your OpenBSD dmesg to the NYC*BUG dmesg archive.
   
 open my $de, '-|', qw( sysctl -n hw.vendor hw.product hw.version ) or die $!;  my @sysctls = (
 my $description = join ' ', split /\s+/s,      [qw( hw.vendor hw.product hw.version  )],
     do { local $/ = undef; readline $de };      [qw( hw.model )],
 close $de or die $!;  );
   
   my $description = "@ARGV";
   
   while ( @sysctls and not $description ) {
       my @s = @{ shift @sysctls };
   
       open my $de, '-|', qw( sysctl -n ), @s or die $!;
       $description = join ' ', split /\s+/s,
           do { local $/ = undef; readline $de };
       close $de or die $!;
   }
   
 open my $dm, '<', '/var/run/dmesg.boot' or die $!;  open my $dm, '<', '/var/run/dmesg.boot' or die $!;
 my $dmesg = do { local $/ = undef; readline $dm };  my $dmesg = do { local $/ = undef; readline $dm };

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>