mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
Compare commits
1 Commits
release/v4
...
origin/WIF
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ba6500f3e |
@@ -24,7 +24,9 @@ endef
|
|||||||
|
|
||||||
define KernelPackage/cig-wifi-mode-sw/install
|
define KernelPackage/cig-wifi-mode-sw/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin/
|
$(INSTALL_DIR) $(1)/usr/sbin/
|
||||||
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
||||||
$(INSTALL_BIN) ./files/cig_wifi_mode_sw $(1)/usr/sbin/cig_wms
|
$(INSTALL_BIN) ./files/cig_wifi_mode_sw $(1)/usr/sbin/cig_wms
|
||||||
|
$(INSTALL_BIN) ./files/cig_wifi_mode_boot $(1)/etc/init.d/cig_wmb
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call KernelPackage,cig-wifi-mode-sw))
|
$(eval $(call KernelPackage,cig-wifi-mode-sw))
|
||||||
|
|||||||
13
feeds/qca-wifi-7/cig-platform-pkg/cig-wifi-mode-sw/files/cig_wifi_mode_boot
Executable file
13
feeds/qca-wifi-7/cig-platform-pkg/cig-wifi-mode-sw/files/cig_wifi_mode_boot
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh /etc/rc.common
|
||||||
|
|
||||||
|
START=60
|
||||||
|
|
||||||
|
boot(){
|
||||||
|
local bands=$(cat /proc/rf_switch)
|
||||||
|
|
||||||
|
if [ "x$bands" = "x3" ]; then
|
||||||
|
echo "AFC is not ready, switch to 2-band mode" >/dev/console
|
||||||
|
echo 2 > /proc/rf_switch
|
||||||
|
firstboot -y -r
|
||||||
|
fi
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user