ipq40xx: enable ath10k_thermal by default
This commit is contained in:
parent
94d7c309e4
commit
fd954e61e5
@ -264,6 +264,7 @@ define KernelPackage/ath10k/config
|
||||
|
||||
config ATH10K_THERMAL
|
||||
bool "Enable thermal sensors and throttling support"
|
||||
default y
|
||||
depends on PACKAGE_kmod-ath10k
|
||||
|
||||
endef
|
||||
|
||||
@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set_rpi4() {
|
||||
case "$(board_name)" in
|
||||
raspberrypi,4-model-b)
|
||||
sed -i 's/VHT80/VHT40/g' /lib/wifi/mac80211.sh
|
||||
sed -i 's|pcdata(boardinfo.system or "?")|luci.sys.exec("uname -m") or "?"|g' /usr/lib/lua/luci/view/admin_status/index.htm
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
boot_hook_add preinit_main set_rpi4
|
||||
15
target/linux/bcm27xx/base-files/lib/preinit/82_set_rpi_info
Normal file
15
target/linux/bcm27xx/base-files/lib/preinit/82_set_rpi_info
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
set_rpi_info() {
|
||||
case "$(board_name)" in
|
||||
raspberrypi,4-model-b)
|
||||
sed -i 's/VHT80/VHT40/g' /lib/wifi/mac80211.sh
|
||||
sed -i 's|pcdata(boardinfo.system or "?")|pcdata(boardinfo.system or "ARMv8 Processor")|g' /usr/lib/lua/luci/view/admin_status/index.htm
|
||||
;;
|
||||
*)
|
||||
sed -i 's|pcdata(boardinfo.system or "?")|pcdata(boardinfo.system or "ARMv8 Processor")|g' /usr/lib/lua/luci/view/admin_status/index.htm
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
boot_hook_add preinit_main set_rpi_info
|
||||
@ -20,7 +20,7 @@ DEFAULT_PACKAGES += \
|
||||
kmod-ath10k wpad-openssl \
|
||||
kmod-usb3 kmod-usb-dwc3 ath10k-firmware-qca4019 \
|
||||
automount autosamba luci-app-ipsec-vpnd v2ray shadowsocks-libev-ss-redir shadowsocksr-libev-server \
|
||||
luci-app-unblockmusic luci-app-cpufreq luci-app-zerotier luci-app-xlnetacc ca-certificates \
|
||||
luci-app-unblockmusic luci-app-cpufreq luci-app-zerotier ca-certificates lm-sensors \
|
||||
htop fdisk e2fsprogs
|
||||
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user