Merge pull request #2615 from fewtarius/dev

Add a guard to set_epp so it isn't executed on devices that don't have it available.
This commit is contained in:
fewtarius 2023-12-30 16:36:09 -05:00 committed by GitHub
commit ba967dd8be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -336,11 +336,14 @@ case ${CPU_VENDOR} in
esac
### Apply energy performance preference
EPP=$(get_setting "power.epp" "${PLATFORM}" "${ROMNAME##*/}")
if [ ! -z ${EPP} ]
if [ -e "/usr/bin/set_epp" ]
then
${VERBOSE} && log $0 "Set EPP to (${EPP})"
/usr/bin/set_epp ${EPP}
EPP=$(get_setting "power.epp" "${PLATFORM}" "${ROMNAME##*/}")
if [ ! -z ${EPP} ]
then
${VERBOSE} && log $0 "Set EPP to (${EPP})"
/usr/bin/set_epp ${EPP}
fi
fi
### Configure GPU performance mode