From 8160606dc84ed3c07157130f2c573fa627a01050 Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 23 Jun 2022 19:52:33 +0800 Subject: [PATCH] Revert "Build: remove fan patch since upstrem has added it" This reverts commit 6dd0ab6ecc61bc6d28370942cb5ca6a6d7d1bcc1. --- scripts/patches.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/patches.sh b/scripts/patches.sh index 1698272..2f00914 100644 --- a/scripts/patches.sh +++ b/scripts/patches.sh @@ -61,7 +61,10 @@ if [ $BRANCH == 'master' ]; then echo -e "\toption minfreq0 '816000'" >> $config_file_cpufreq echo -e "\toption maxfreq0 '1512000'\n" >> $config_file_cpufreq - # fix fan control + # enable fan control + wget https://github.com/friendlyarm/friendlywrt/commit/cebdc1f94dcd6363da3a5d7e1e69fd741b8b718e.patch + git apply cebdc1f94dcd6363da3a5d7e1e69fd741b8b718e.patch + rm cebdc1f94dcd6363da3a5d7e1e69fd741b8b718e.patch sed -i 's/pwmchip1/pwmchip0/' target/linux/rockchip/armv8/base-files/usr/bin/fa-fancontrol.sh target/linux/rockchip/armv8/base-files/usr/bin/fa-fancontrol-direct.sh fi