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:
commit
ba967dd8be
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue