Changeset 2862


Ignore:
Timestamp:
Aug 23, 2011, 2:54:04 AM (8 years ago)
Author:
bruno
Message:

r4218@localhost: bruno | 2011-08-23 01:21:26 +0200

  • Fix an error when dmidecode reports comments before system name
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/mindi-bkphw

    r2709 r2862  
    2424mkdir $bkpdir,0755 if (! -d $bkpdir) ;
    2525open(SYSTEM,"/usr/sbin/dmidecode -s 'system-product-name' 2> /dev/null |") || die "You need /usr/sbin/dmidecode for mindi hardware support";
     26next if (/^#/);
    2627my $productname = <SYSTEM>;
    2728close(SYSTEM);
Note: See TracChangeset for help on using the changeset viewer.