Add support for Linux 3.x and newer

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4143 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2011-06-01 16:00:18 +00:00
parent 098decda6c
commit e294cce512
1 changed files with 9 additions and 7 deletions

View File

@ -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 \