fix check for vcgencmd

This commit is contained in:
frederik
2024-02-28 11:52:14 +01:00
parent e0484b8caf
commit cafe172241
+1 -1
View File
@@ -4,7 +4,7 @@
echo "........................................IPs....................................."
echo "LAN IP: $(hostname -I|cut -d' ' -f1)"
echo "Public IP: $(curl -s4 ifconfig.co)"
if ! dpkg -l | grep -q vcgencmd ; then
if which vcgencmd &>/dev/null ; then
echo "..................................\`vcgencmd stats\`.............................."
sudo -u$USER vcgencmd get_throttled
hex=$(sudo -u$USER vcgencmd get_throttled | cut -d'x' -f2)