X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=lfs%2Fcompat-wireless;h=4b63a16ab0d0350b09cf10d80c1949e5b46a304e;hp=24bc444e88c466ae75ddbeb8ea4c6d2f738d3cac;hb=1838c3bda15cd571bdbed4fb39b2b078b02a5e38;hpb=2b2e03eded667aea41f564e4ea982cdf77a32f08 diff --git a/lfs/compat-wireless b/lfs/compat-wireless index 24bc444e88..4b63a16ab0 100644 --- a/lfs/compat-wireless +++ b/lfs/compat-wireless @@ -30,7 +30,7 @@ else VERSUFIX=ipfire endif -VER = 2009-03-30 +VER = 2.6.32-rc7 THISAPP = compat-wireless-$(VER) DL_FILE = $(THISAPP).tar.bz2 @@ -46,7 +46,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 88ea3e5b42ef5fbcec8b91043dd3aa76 +$(DL_FILE)_MD5 = c7b9f081895c23841509a363f9ae4da2 install : $(TARGET) @@ -77,12 +77,18 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xjf $(DIR_DL)/$(DL_FILE) -# Apply some wlan-card patches - cd $(DIR_APP) && cat $(DIR_SRC)/src/patches/compat-wireless_*.patch | patch -Np1 + cd $(DIR_APP) && make KLIB=/lib/modules/$(KVER)-$(VERSUFIX) KMODDIR=kernel install-modules -# Build only the modules - cd $(DIR_APP) && sed -i -e "s|install: uninstall modules|install: modules|g" Makefile - cd $(DIR_APP) && sed -i -e "s|\t@# All the scripts|\nende:|g" Makefile + # The makefile put the modules to a wrong place move back... + cp -rf /lib/modules/$(KVER)-$(VERSUFIX)/lib / + rm -rf /lib/modules/$(KVER)-$(VERSUFIX)/lib - cd $(DIR_APP) && make KLIB=/lib/modules/$(KVER)-$(VERSUFIX) KMODDIR=kernel install + # Set Regulatory Domain to "EU" (use Channel 1-14 max. 20db) + echo options cfg80211 ieee80211_regdom=EU > /etc/modprobe.d/cfg80211 + + # Remove ieee80211 modules. Because the conflicts with compat-wireless + -rm -rf /lib/modules/$(KVER)-$(VERSUFIX)/kernel/net/ieee80211 + + -rm -rf $(DIR_APP) @$(POSTBUILD) +