1
0
Fork 0
Signed-off-by: lilinjie <lilinjie@uniontech.com>
This commit is contained in:
lilinjie 2023-03-30 15:04:44 +08:00
parent 8686b2ba12
commit 6030c5cbae

View file

@ -229,7 +229,7 @@ set_cpu_governor() {
governor=$1
# always patch cpuspeed configuration if exists, if it doesn't exist and is enabled,
# explictly disable it with hint
# explicitly disable it with hint
if [ -e $CPUSPEED_INIT ]; then
if [ ! -e $CPUSPEED_SAVE_FILE -a -e $CPUSPEED_CFG ]; then
cp -p $CPUSPEED_CFG $CPUSPEED_SAVE_FILE