mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-23 08:20:00 +00:00
kodi: use project specific cputemp scripts for all projects
This commit is contained in:
parent
ebe6234b16
commit
0af4984740
@ -1,4 +1,7 @@
|
||||
<advancedsettings>
|
||||
<cputempcommand>/usr/bin/cputemp</cputempcommand>
|
||||
<gputempcommand>/usr/bin/gputemp</gputempcommand>
|
||||
|
||||
<showexitbutton>false</showexitbutton>
|
||||
<remotedelay>1</remotedelay>
|
||||
<samba>
|
||||
|
@ -274,8 +274,6 @@ post_makeinstall_target() {
|
||||
cp $PKG_DIR/scripts/service-addon-wrapper $INSTALL/usr/sbin
|
||||
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp $PKG_DIR/scripts/cputemp $INSTALL/usr/bin
|
||||
ln -sf cputemp $INSTALL/usr/bin/gputemp
|
||||
cp $PKG_DIR/scripts/kodi-remote $INSTALL/usr/bin
|
||||
cp $PKG_DIR/scripts/setwakeup.sh $INSTALL/usr/bin
|
||||
|
||||
|
8
projects/Amlogic/filesystem/usr/bin/cputemp
Executable file
8
projects/Amlogic/filesystem/usr/bin/cputemp
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
TEMP="$(cat /sys/class/thermal/thermal_zone0/temp)"
|
||||
echo "$(( $TEMP / 1000 )) C"
|
1
projects/Amlogic/filesystem/usr/bin/gputemp
Symbolic link
1
projects/Amlogic/filesystem/usr/bin/gputemp
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/bin/cputemp
|
@ -1,4 +0,0 @@
|
||||
<advancedsettings>
|
||||
<cputempcommand>cputemp</cputempcommand>
|
||||
<gputempcommand>gputemp</gputempcommand>
|
||||
</advancedsettings>
|
@ -4,9 +4,6 @@
|
||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
# inspired by
|
||||
# https://github.com/xtranophilist/gnome-shell-extension-cpu-temperature/blob/master/extension.js
|
||||
|
||||
TEMP=0
|
||||
|
||||
if [ $(basename "$0") = "gputemp" -o "$1" = "gpu" ]; then
|
||||
@ -29,7 +26,6 @@ if [ $(basename "$0") = "gputemp" -o "$1" = "gpu" ]; then
|
||||
done
|
||||
|
||||
TEMP="$(( $TEMP / 1000 ))"
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -50,11 +46,6 @@ if [ "$1" = "cpu" -o "$TEMP" = "0" ]; then
|
||||
TEMP="$(cat /sys/class/hwmon/hwmon0/device/temp1_input)"
|
||||
fi
|
||||
|
||||
# used on RaspberryPi and 3.14 kernel amlogic
|
||||
if [ "$TEMP" = "0" -a -f /sys/class/thermal/thermal_zone0/temp ]; then
|
||||
TEMP="$(cat /sys/class/thermal/thermal_zone0/temp)"
|
||||
fi
|
||||
|
||||
TEMP="$(( $TEMP / 1000 ))"
|
||||
fi
|
||||
|
1
projects/Generic/filesystem/usr/bin/gputemp
Symbolic link
1
projects/Generic/filesystem/usr/bin/gputemp
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/bin/cputemp
|
@ -1,6 +1,4 @@
|
||||
<advancedsettings>
|
||||
<cputempcommand>cputemp</cputempcommand>
|
||||
<gputempcommand>gputemp</gputempcommand>
|
||||
<video>
|
||||
<latency>
|
||||
<delay>0</delay>
|
||||
|
8
projects/RPi/filesystem/usr/bin/cputemp
Executable file
8
projects/RPi/filesystem/usr/bin/cputemp
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
TEMP="$(cat /sys/class/thermal/thermal_zone0/temp)"
|
||||
echo "$(( $TEMP / 1000 )) C"
|
1
projects/RPi/filesystem/usr/bin/gputemp
Symbolic link
1
projects/RPi/filesystem/usr/bin/gputemp
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/bin/cputemp
|
8
projects/Rockchip/filesystem/usr/bin/cputemp
Executable file
8
projects/Rockchip/filesystem/usr/bin/cputemp
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
TEMP="$(cat /sys/class/thermal/thermal_zone0/temp)"
|
||||
echo "$(( $TEMP / 1000 )) C"
|
1
projects/Rockchip/filesystem/usr/bin/gputemp
Symbolic link
1
projects/Rockchip/filesystem/usr/bin/gputemp
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/bin/cputemp
|
8
projects/WeTek_Core/filesystem/usr/bin/cputemp
Executable file
8
projects/WeTek_Core/filesystem/usr/bin/cputemp
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
TEMP="$(cat /sys/class/thermal/thermal_zone0/temp)"
|
||||
echo "$(( $TEMP / 1000 )) C"
|
1
projects/WeTek_Core/filesystem/usr/bin/gputemp
Symbolic link
1
projects/WeTek_Core/filesystem/usr/bin/gputemp
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/bin/cputemp
|
@ -1,4 +0,0 @@
|
||||
<advancedsettings>
|
||||
<cputempcommand>cputemp</cputempcommand>
|
||||
<gputempcommand>gputemp</gputempcommand>
|
||||
</advancedsettings>
|
8
projects/WeTek_Play/filesystem/usr/bin/cputemp
Executable file
8
projects/WeTek_Play/filesystem/usr/bin/cputemp
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
TEMP="$(cat /sys/class/thermal/thermal_zone0/temp)"
|
||||
echo "$(( $TEMP / 1000 )) C"
|
1
projects/WeTek_Play/filesystem/usr/bin/gputemp
Symbolic link
1
projects/WeTek_Play/filesystem/usr/bin/gputemp
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/bin/cputemp
|
@ -1,4 +0,0 @@
|
||||
<advancedsettings>
|
||||
<cputempcommand>cputemp</cputempcommand>
|
||||
<gputempcommand>gputemp</gputempcommand>
|
||||
</advancedsettings>
|
Loading…
Reference in New Issue
Block a user