We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1fd3bf5 + 4f3d246 commit ae10c36Copy full SHA for ae10c36
scriptmodules/supplementary/bashwelcometweak.sh
@@ -44,8 +44,8 @@ function retropie_welcome() {
44
cpuTempC=$(($(cat /sys/class/thermal/thermal_zone0/temp)/1000)) && cpuTempF=$((cpuTempC*9/5+32))
45
fi
46
47
- if [[ -f "/opt/vc/bin/vcgencmd" ]]; then
48
- if gpuTempC=$(/opt/vc/bin/vcgencmd measure_temp); then
+ if [[ -n $(command -v vcgencmd) ]]; then
+ if gpuTempC=$(vcgencmd measure_temp); then
49
gpuTempC=${gpuTempC:5:2}
50
gpuTempF=$((gpuTempC*9/5+32))
51
else
0 commit comments