fix check for vcgencmd
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
echo "........................................IPs....................................."
|
echo "........................................IPs....................................."
|
||||||
echo "LAN IP: $(hostname -I|cut -d' ' -f1)"
|
echo "LAN IP: $(hostname -I|cut -d' ' -f1)"
|
||||||
echo "Public IP: $(curl -s4 ifconfig.co)"
|
echo "Public IP: $(curl -s4 ifconfig.co)"
|
||||||
if ! dpkg -l | grep -q vcgencmd ; then
|
if which vcgencmd &>/dev/null ; then
|
||||||
echo "..................................\`vcgencmd stats\`.............................."
|
echo "..................................\`vcgencmd stats\`.............................."
|
||||||
sudo -u$USER vcgencmd get_throttled
|
sudo -u$USER vcgencmd get_throttled
|
||||||
hex=$(sudo -u$USER vcgencmd get_throttled | cut -d'x' -f2)
|
hex=$(sudo -u$USER vcgencmd get_throttled | cut -d'x' -f2)
|
||||||
|
|||||||
Reference in New Issue
Block a user