diff options
author | Luis R. Rodriguez <mcgrof@frijolero.org> | 2012-01-31 19:05:56 -0800 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@frijolero.org> | 2012-02-10 13:41:00 -0800 |
commit | 2a1a68107a51fcd5fb9abd6cedd9333c66b6f269 (patch) | |
tree | 92b166910f7df9398b3214bf38801f78d1e54caf /Makefile | |
parent | d90d458f267e7084a0f28409945d98c3d848a94c (diff) |
compat-wireless: add alx driver and backport
This adds backport support for the alx driver.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -12,6 +12,7 @@ MODPROBE := /sbin/modprobe ifneq ($(wildcard $(MODPROBE)),) MADWIFI=$(shell $(MODPROBE) -l ath_pci) OLD_IWL=$(shell $(MODPROBE) -l iwl4965) +OLD_ALX=$(shell $(MODPROBE) -l atl1c) endif DESTDIR?= @@ -185,6 +186,7 @@ install-scripts: $(MODPROBE) @install scripts/athenable $(DESTDIR)/usr/sbin/ @install scripts/b43enable $(DESTDIR)/usr/sbin/ @install scripts/iwl-enable $(DESTDIR)/usr/sbin/ + @install scripts/alx-enable $(DESTDIR)/usr/sbin/ @install scripts/athload $(DESTDIR)/usr/sbin/ @install scripts/b43load $(DESTDIR)/usr/sbin/ @install scripts/iwl-load $(DESTDIR)/usr/sbin/ @@ -206,6 +208,15 @@ install-scripts: $(MODPROBE) echo Running iwl-enable iwlagn...;\ /usr/sbin/iwl-enable iwlagn ;\ fi + @if [ ! -z "$(OLD_ALX)" ] && [ -z "$(DESTDIR)" ]; then \ + echo ;\ + echo -n "Note: atl1c detected, we're going to disable it. " ;\ + echo "If you would like to enable it later you can run:" ;\ + echo " sudo alx-load atl1c" ;\ + echo ;\ + echo Running alx-enable alx...;\ + /usr/sbin/alx-enable alx;\ + fi @# If on distributions like Mandriva which like to @# compress their modules this will find out and do @# it for you. Reason is some old version of modutils @@ -299,6 +310,7 @@ install-scripts: $(MODPROBE) @$(MODPROBE) -l atl2 @$(MODPROBE) -l atl1e @$(MODPROBE) -l atl1c + @$(MODPROBE) -l alx @echo @echo "Currently detected bluetooth subsystem modules:" @echo @@ -430,6 +442,7 @@ uninstall: $(MODPROBE) @$(MODPROBE) -l atl2 @$(MODPROBE) -l atl1e @$(MODPROBE) -l atl1c + @$(MODPROBE) -l alx @echo @echo "Your old bluetooth subsystem modules were left intact:" @echo |