Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RPM=2000
- while (true) do
- sleep 2
- TEMP=$(cat /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp3_input)
- if [ $TEMP => 6000 ]; then
- $RPM=$RPM+250
- fi
- if [ $TEMP =< 4500 ]; then
- $RPM=$RPM-250
- fi
- if [ $RPM>6000 ]; then
- $RPM=6000
- fi
- echo $TEMP > /sys/devices/platform/applesmc.768/fan1_min
- done
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement