947c482a37
* Break Loki Zero link to configure proper default TDP for Max and MiniPro. * Revert drain when charged while powered off support for RK3566.
18 lines
450 B
Bash
Executable file
18 lines
450 B
Bash
Executable file
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
|
|
|
. /etc/profile.d/001-functions
|
|
|
|
case ${CPU_VENDOR} in
|
|
AuthenticAMD)
|
|
tocon "Configuring system TDP..."
|
|
# 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
|
|
;;
|
|
esac
|