aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2011-06-15 21:17:17 +0000
committerHauke Mehrtens <hauke@openwrt.org>2011-06-15 21:17:17 +0000
commit9893a55a4c9b58337e5804dbcf3831af5c68b733 (patch)
tree97329ed2c3da6a0dc08560ee56987fc2b02e9174
parentb8f56104dc472be555ad2b83f92c1e210eb61a5f (diff)
downloadmaster-187ad058-9893a55a4c9b58337e5804dbcf3831af5c68b733.tar.gz
master-187ad058-9893a55a4c9b58337e5804dbcf3831af5c68b733.tar.bz2
master-187ad058-9893a55a4c9b58337e5804dbcf3831af5c68b733.zip
madwifi: Fix linux 3.0 detection
Allows madwifi to be built against linux 3.0. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27188 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/madwifi/patches/476-3.0_detection_fix.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/madwifi/patches/476-3.0_detection_fix.patch b/package/madwifi/patches/476-3.0_detection_fix.patch
new file mode 100644
index 0000000000..2f8bfb4a55
--- /dev/null
+++ b/package/madwifi/patches/476-3.0_detection_fix.patch
@@ -0,0 +1,25 @@
+--- a/Makefile
++++ b/Makefile
+@@ -155,13 +155,15 @@ unload:
+ configcheck:
+ @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 \