#! /bin/bash function fan_speed() { if [ -f /sys/devices/platform/cooling_fan/hwmon/hwmon2/fan1_imput ]; then echo -n "Fan-Speed am {$1}: " cat /sys/devices/platform/cooling_fan/hwmon/hwmon2/fan1_input fi } cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq fan_speed "Anfang" vcgencmd measure_temp sysbench cpu --cpu-max-prime=1000 --threads=4 run >/dev/null 2>&1 cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq for f in {1..10} do vcgencmd measure_temp sysbench cpu --cpu-max-prime=50000 --threads=4 run done cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq vcgencmd measure_temp fan_speed "Ende"