From cafe172241725de8af28e67bfb741e940028feaa Mon Sep 17 00:00:00 2001 From: frederik Date: Wed, 28 Feb 2024 11:52:14 +0100 Subject: [PATCH] fix check for vcgencmd --- scripts/extra_info.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/extra_info.sh b/scripts/extra_info.sh index 9c176a9..921d457 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)