diff --git a/Makefile b/Makefile index c050327..bf21ea7 100644 --- a/Makefile +++ b/Makefile @@ -170,13 +170,15 @@ unload: configcheck: sanitycheck @echo -n "Checking kernel configuration... " - @# check version of kernel - @echo $(KERNELRELEASE) | grep -q -i '^[2-9]\.[4-9]\.' || { \ - echo "FAILED"; \ - echo "Only kernel versions 2.4.x and above are supported."; \ - echo "You have $(KERNELRELEASE)."; \ - exit 1; \ - } + @# check kernel version + @case $(KERNELRELEASE) in \ + 2.[456].*) ;; \ + [3-9].*) ;; \ + *) echo "FAILED"; \ + echo "Only kernel versions 2.4.x and above are supported."; \ + echo "You have $(KERNELRELEASE)."; \ + exit 1 ;; \ + esac @# check kernel configuration @if [ -z "$(CONFIG_SYSCTL)" ]; then \