Skip to content

A live bird collage card for your Home Assistant dashboard.

fix check for vcgencmd

frederikcafe17224172
diff --git a/scripts/extra_info.sh b/scripts/extra_info.sh
index 9c176a95..921d4570 100755
--- a/scripts/extra_info.sh
+++ b/scripts/extra_info.sh
@@ -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)