diff --git a/patches.sh b/patches.sh index 0fc60cd..65e031e 100644 --- a/patches.sh +++ b/patches.sh @@ -15,16 +15,7 @@ sed -i '/DEPENDS+/ s/$/ +wsdd2/' `find package/ -follow -type f -path '*/ksmbd-t sed -i 's/ +ntfs-3g/ +ntfs3-mount/' `find package/ -follow -type f -path '*/automount/Makefile'` sed -i '/skip\=/ a skip=`mount | grep -q /dev/$device; echo $?`' `find package/ -follow -type f -path */automount/files/15-automount` -if [ $DEVICE = 'r2s' ]; then - sed -i "s/enable '0'/enable '1'/" `find feeds/ -type f -name oled | grep config` - sed -i 's/1400000/1450000/' target/linux/rockchip/patches-5.4/991-arm64-dts-rockchip-add-more-cpu-operating-points-for.patch - truncate -s-1 package/feeds/luci/luci-app-cpufreq/root/etc/config/cpufreq - echo -e "\toption governor0 'schedutil'" >> package/feeds/luci/luci-app-cpufreq/root/etc/config/cpufreq - echo -e "\toption minfreq0 '816000'" >> package/feeds/luci/luci-app-cpufreq/root/etc/config/cpufreq - echo -e "\toption maxfreq0 '1512000'\n" >> package/feeds/luci/luci-app-cpufreq/root/etc/config/cpufreq -fi - -if [ $DEVICE = 'r2c' ]; then +if [ $DEVICE = 'r2s' -o $DEVICE = 'r2c' ]; then sed -i "s/enable '0'/enable '1'/" `find feeds/ -type f -name oled | grep config` sed -i 's/1400000/1450000/' target/linux/rockchip/patches-5.4/991-arm64-dts-rockchip-add-more-cpu-operating-points-for.patch truncate -s-1 package/feeds/luci/luci-app-cpufreq/root/etc/config/cpufreq @@ -40,7 +31,7 @@ if [ $DEVICE = 'r4s' ]; then sed -i 's/r8169/r8168/' target/linux/rockchip/image/armv8.mk fi -if [[ $DEVICE =~ ('r2s'|'r4s'|'r1p') ]]; then +if [[ $DEVICE =~ ('r2s'|'r2c'|'r4s'|'r1p') ]]; then wget https://github.com/coolsnowwolf/lede/raw/757e42d70727fe6b937bb31794a9ad4f5ce98081/target/linux/rockchip/config-default -NP target/linux/rockchip/ wget https://github.com/coolsnowwolf/lede/commit/f341ef96fe4b509a728ba1281281da96bac23673.patch git apply f341ef96fe4b509a728ba1281281da96bac23673.patch