Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- case $1 in
- "temp")
- vcgencmd measure_temp | sed "s/'//" | sed 's/temp\=//';
- ;;
- *)
- while (true); do
- echo "$(printf '\r')CPU Temp: $(vcgencmd measure_temp) ($(($(vcgencmd measure_clock arm | cut -d'=' -f2)/1000000)) MHz, core $(($(vcgencmd measure_clock core | cut -d'=' -f2)/1000000)) MHz, emmc $(($(vcgencmd measure_clock emmc | cut -d'=' -f2)/1000000)) MHz, $(vcgencmd measure_volts core | cut -d'=' -f2))" | sed "s/'//" | sed 's/temp\=//' | tr -d '\n';
- sleep 3;
- done;
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement