Changeset 3184


Ignore:
Timestamp:
Sep 12, 2013, 7:36:58 AM (6 years ago)
Author:
bruno
Message:
  • Fix a but in kernel version detection by sumplifying the RE used with grep (now using -E)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/mindi

    r3182 r3184  
    23512351        if [ "$?" -eq "0" ] ; then
    23522352            # Used by ia64
    2353             fkern_ver=`gzip -cd $fname | strings 2> /dev/null | grep "[2-9]+*[.][0-9]+*[.][0-9]+*[^\@]*@"`
     2353            fkern_ver=`gzip -cd $fname | strings 2> /dev/null | grep -E '[2-9]+[.][0-9]+[.][0-9]+[^\@]*@'`
    23542354        else
    2355             fkern_ver=`strings $fname 2> /dev/null | grep "[2-9]+*[.][0-9]+*[.][0-9]+*[^\@]*@"`
     2355            fkern_ver=`strings $fname 2> /dev/null | grep -E '[2-9]+[.][0-9]+[.][0-9]+[^\@]*@'`
    23562356        fi
    23572357        echo "$fkern_ver"
Note: See TracChangeset for help on using the changeset viewer.