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

View File

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