ipq40xx: enable ath10k_thermal by default

This commit is contained in:
AmadeusGhost 2020-04-05 11:28:04 +08:00
parent 94d7c309e4
commit fd954e61e5
4 changed files with 17 additions and 13 deletions

View File

@ -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

View File

@ -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

View 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

View File

@ -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))