Skip to content

Commit

Permalink
Fix RPi-Monitor CPU Frequencies
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Jun 14, 2018
1 parent 6045b53 commit a33419a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fixes.sh
Expand Up @@ -16,6 +16,9 @@
while fuser /var/{lib/{dpkg,apt/lists},cache/apt/archives}/lock >/dev/null 2>&1; do sleep 1; done
echo "Done."

# Update apt here so we don't have to do it below
apt update

# using hard file location rather than symlink as symlink may not exist yet on older versions
platform=$(/usr/local/share/nems/nems-scripts/info.sh platform)
ver=$(/usr/local/share/nems/nems-scripts/info.sh nemsver)
Expand Down Expand Up @@ -81,6 +84,13 @@ if [[ "$ver" == "1.4" ]]; then
fi
fi

# Fix RPi-Monitor CPU Frequency Reporting
if (( $platform >= 0 )) && (( $platform <= 9 )); then
if [[ ! -e /usr/bin/vcgencmd ]]; then
apt -y install libraspberrypi-bin
fi
fi

exit

fi
Expand Down

0 comments on commit a33419a

Please sign in to comment.