X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=linux%2Fmppe%2Fmppeinstall.sh;fp=linux%2Fmppe%2Fmppeinstall.sh;h=60c7324a107ef79fb3151f0ea8e8bc9fd3aa1015;hp=d0a57e55bda66f5cb947323c2f41d418d2cc55ce;hb=9d6cbedd2eb6b2e4208cf8f900ae0a4b14e04c40;hpb=731ef5f88822fdccf7894a28c906bf6bf8fa134c diff --git a/linux/mppe/mppeinstall.sh b/linux/mppe/mppeinstall.sh index d0a57e5..60c7324 100644 --- a/linux/mppe/mppeinstall.sh +++ b/linux/mppe/mppeinstall.sh @@ -13,8 +13,8 @@ fi # strip any trailing / set -- ${1%/} -# strip leading /path/to/linux- -ver=`echo "${1##*/}" | sed -e 's/linux-//'` # -e 's/\/$//' +# strip leading /path/to/linux- and trailing -release +ver=`echo "${1##*/}" | sed -e 's/linux-//' -e 's/-.*//'` if ! expr "$ver" : 2.[24] >/dev/null ; then echo "$0: Unable to determine kernel version ($ver)" >&2 exit 1