linux_dsm_epyc7002/SynoBuildConf/install-virinst-T1tool

12 lines
403 B
Plaintext
Raw Normal View History

#!/bin/bash
cpufreq_modules="freq_table cpufreq_stats cpufreq thermal_sys processor mperf acpi-cpufreq cpufreq_ondemand cpufreq_performance cpufreq_powersave cpufreq_conservative"
# shellcheck disable=SC2154
for module_name in $cpufreq_modules; do
module=$(find . -name "${module_name}".ko)
[ -e "${module}" ] && install -Dm644 "${module}" "${TmpInstDir}/lib/modules/${module_name}.ko"
done
exit 0