dotfiles/termscripts/cpu-freq-hook.sh

14 lines
190 B
Bash

#!/usr/bin/env sh
freq="$(cat /tmp/cpu-freq)"
printf "%b\n" "$freq > 5" | bc -l
while [ $freq -gt 5 ];
do
sleep 5
freq="$(cat /tmp/cpu-freq)"
done
printf "%b\n" "done"
sleep 10m