加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
knownfixes.sh 3.00 KB
一键复制 编辑 原始数据 按行查看 历史
gxw1141446823 提交于 2022-05-05 14:10 . update knownfixes.sh.
#!/bin/bash
function knownfixes() {
PLATFORM="$1"
VERSION="$2"
case $PLATFORM in
ds3615xs)
case $VERSION in
\
7.1.0-42621)
echo sed -i 's/^acpi-cpufreq/# acpi-cpufreq/g' /mnt/dsmroot/usr/lib/modules-load.d/70-cpufreq-kernel.conf && cat /mnt/dsmroot/usr/lib/modules-load.d/70-cpufreq-kernel.conf
;;
*)
echo "$VERSION is not a known VERSION, or no fixes are available"
;;
esac
;;
dva3221)
case $VERSION in
\
7.1.0-42621)
echo sed -i 's/^acpi-cpufreq/# acpi-cpufreq/g' /mnt/dsmroot/usr/lib/modules-load.d/70-cpufreq-kernel.conf && cat /mnt/dsmroot/usr/lib/modules-load.d/70-cpufreq-kernel.conf
[ $(lspci -nn | grep -i nvidia | grep 300 | wc -l) -le 0 ] && echo sed -i 's/^/#/g' /mnt/dsmroot/usr/lib/modules-load.d/70-syno-nvidia-gpu.conf && cat /mnt/dsmroot/usr/lib/modules-load.d/70-syno-nvidia-gpu.conf
;;
\
*)
echo "$VERSION is not a known VERSION, or no fixes are available"
;;
esac
;;
ds3622xsp)
case $VERSION in
\
7.1.0-42621)
echo sed -i 's/^acpi-cpufreq/# acpi-cpufreq/g' /mnt/dsmroot/usr/lib/modules-load.d/70-cpufreq-kernel.conf && cat /mnt/dsmroot/usr/lib/modules-load.d/70-cpufreq-kernel.conf
;;
*)
echo "$VERSION is not a known VERSION, or no fixes are available"
;;
esac
;;
*)
echo "$PLATFORM is not a known PLATFORM, or no fixes are available"
;;
ds3617xs)
case $VERSION in
\
7.1.0-42621)
echo sed -i 's/^acpi-cpufreq/# acpi-cpufreq/g' /mnt/dsmroot/usr/lib/modules-load.d/70-cpufreq-kernel.conf && cat /mnt/dsmroot/usr/lib/modules-load.d/70-cpufreq-kernel.conf
;;
*)
echo "$VERSION is not a known VERSION, or no fixes are available"
;;
esac
;;
ds920p)
case $VERSION in
\
7.1.0-42621)
cd /home/tc/redpill-load ; ./ext-manager.sh add https://gitee.com/gxw1141446823/redpill-load/raw/master/redpill-dtb/rpext-index.json
cd /home/tc/redpill-load ; ./ext-manager.sh _update_platform_exts ds920p_42218
cp /home/tc/ds920p.dtb /home/tc/redpill-load/custom/extensions/jumkey.dtb/ds920p_42218/model_ds920p.dtb
echo sed -i 's/^acpi-cpufreq/# acpi-cpufreq/g' /mnt/dsmroot/usr/lib/modules-load.d/70-cpufreq-kernel.conf && cat /mnt/dsmroot/usr/lib/modules-load.d/70-cpufreq-kernel.conf
;;
*)
echo "$VERSION is not a known VERSION, or no fixes are available"
;;
esac
;;
*)
echo "$PLATFORM is not a known PLATFORM, or no fixes are available"
;;
esac
}
knownfixes $1 $2
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化