diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-12-22 08:02:59 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-12-22 08:02:59 +0000 |
commit | 88e7da2babd4cc61032f2047525cfd1c56d09068 (patch) | |
tree | 51b4c36449ec4a005ffec713c74f90ec4f6d9ac7 /package | |
parent | a5546e6c40074a4c95b7bcf192a68e95e87ad306 (diff) | |
download | master-31e0f0ae-88e7da2babd4cc61032f2047525cfd1c56d09068.tar.gz master-31e0f0ae-88e7da2babd4cc61032f2047525cfd1c56d09068.tar.bz2 master-31e0f0ae-88e7da2babd4cc61032f2047525cfd1c56d09068.zip |
nuke old madwifi init script, add new /lib/wifi handler (usable for many configurations already), fix up a target name
SVN-Revision: 5889
Diffstat (limited to 'package')
-rw-r--r-- | package/madwifi/Makefile | 6 | ||||
-rwxr-xr-x | package/madwifi/files/lib/wifi/madwifi.sh | 3 | ||||
-rw-r--r-- | package/madwifi/files/madwifi.init | 5 |
3 files changed, 6 insertions, 8 deletions
diff --git a/package/madwifi/Makefile b/package/madwifi/Makefile index b0e5be8712..f59daddc1d 100644 --- a/package/madwifi/Makefile +++ b/package/madwifi/Makefile @@ -41,7 +41,7 @@ ifeq ($(ARCH),powerpc) endif BUS:=PCI -ifneq ($(CONFIG_LINUX_2_6_AR531X),) +ifneq ($(CONFIG_LINUX_2_6_ATHEROS),) BUS:=AHB HAL_TARGET:=ap51 endif @@ -140,8 +140,8 @@ define Build/UninstallDev endef define KernelPackage/madwifi/install - $(INSTALL_DIR) $(1)/etc/init.d - $(INSTALL_BIN) ./files/madwifi.init $(1)/etc/init.d/madwifi + $(INSTALL_DIR) $(1)/lib/wifi + $(INSTALL_DATA) ./files/lib/wifi/madwifi.sh $(1)/lib/wifi $(INSTALL_DIR) $(1)/usr/sbin $(CP) $(PKG_BUILD_DIR)/tools/{madwifi_multi,80211debug,80211stats,athchans,athctrl,athdebug,athkey,athstats,wlanconfig} $(1)/usr/sbin/ endef diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index de9870ce65..dd030ba169 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -154,6 +154,9 @@ enable_atheros() { } config_set "$vif" ifname "$ifname" + config_get "$device" mode + iwpriv "$ifname" mode "${mode:-11g}" + config_get wds "$vif" wds case "$wds" in 1|on|enabled) wds=1;; diff --git a/package/madwifi/files/madwifi.init b/package/madwifi/files/madwifi.init deleted file mode 100644 index 0c3ad3c3c1..0000000000 --- a/package/madwifi/files/madwifi.init +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh /etc/rc.common -START=20 -boot() { - iwpriv ath0 mode 3 -} |