2022-09-04 16:57:55 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
|
|
|
|
|
|
|
|
. /etc/profile
|
|
|
|
|
2023-04-22 20:01:07 +00:00
|
|
|
tocon "Configuring system TDP..."
|
|
|
|
|
2022-09-04 16:57:55 +00:00
|
|
|
# If there is no defined overclock, make sure it's "off".
|
|
|
|
OVERCLOCK=$(get_setting system.overclock)
|
|
|
|
if [ -z ${OVERCLOCK} ]
|
|
|
|
then
|
|
|
|
set_setting system.overclock off
|
|
|
|
fi
|
|
|
|
|
|
|
|
/usr/bin/overclock boot
|