Comment 4 for bug 586321

Revision history for this message
Stonedge (redshadow69) wrote :

Ok here a better solution since it only use perl Split function to parse the dmidecode version

my @SplitVersion = split(/\./, `dmidecode -V`);
if (@SplitVersion[0] >= 3){
      return 1;}
elsif ((@SplitVersion[0] == 2) && ( @SplitVersion[1] >= 7)){
      return 1;}

As far as I know this one should work with almost any perl version... but i'm not a perl expert at all

Stonedge