mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 21:56:42 +00:00
gputemp: added ability to use own xorg.conf (fglrx)
This commit is contained in:
parent
77ee536ab9
commit
0207b46188
@ -27,7 +27,12 @@ if lspci -n | grep 0300 | grep -q 10de; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if lspci -n | grep 0300 | grep -q 1002; then
|
if lspci -n | grep 0300 | grep -q 1002; then
|
||||||
[ -f /usr/bin/aticonfig ] && TEMP=`/usr/bin/aticonfig --od-gettemperature | grep Temperature | cut -f 2 -d "-" | cut -f 1 -d "." | sed -e "s, ,,"`
|
if [ -f /storage/.config/xorg.conf ]; then
|
||||||
|
XORG="/storage/.config/xorg.conf"
|
||||||
|
else
|
||||||
|
XORG="/etc/X11/xorg-fglrx.conf"
|
||||||
|
fi
|
||||||
|
[ -f /usr/bin/aticonfig ] && TEMP=`/usr/bin/aticonfig -i $XORG --od-gettemperature | grep Temperature | cut -f 2 -d "-" | cut -f 1 -d "." | sed -e "s, ,,"`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${TEMP} C"
|
echo "${TEMP} C"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user