| 1 | --- a/Makefile |
| 2 | +++ b/Makefile |
| 3 | @@ -155,13 +155,15 @@ unload: |
| 4 | configcheck: |
| 5 | @echo -n "Checking kernel configuration... " |
| 6 | |
| 7 | - @# check version of kernel |
| 8 | - @echo $(KERNELRELEASE) | grep -q -i '^[2-9]\.[4-9]\.' || { \ |
| 9 | - echo "FAILED"; \ |
| 10 | - echo "Only kernel versions 2.4.x and above are supported."; \ |
| 11 | - echo "You have $(KERNELRELEASE)."; \ |
| 12 | - exit 1; \ |
| 13 | - } |
| 14 | + @# check kernel version |
| 15 | + @case $(KERNELRELEASE) in \ |
| 16 | + 2.[456].*) ;; \ |
| 17 | + [3-9].*) ;; \ |
| 18 | + *) echo "FAILED"; \ |
| 19 | + echo "Only kernel versions 2.4.x and above are supported."; \ |
| 20 | + echo "You have $(KERNELRELEASE)."; \ |
| 21 | + exit 1 ;; \ |
| 22 | + esac |
| 23 | |
| 24 | @# check kernel configuration |
| 25 | @if [ -z "$(CONFIG_SYSCTL)" ]; then \ |
| 26 | |