#!/bin/bash

# MAC MINI FROM LATE 2012
# What about OTHER PC
# WAH-HA!HA!HA!HA!
# Other... PC...
# All of the day bro
# HA HA HA
fan_rpm="7500"

cd /sys/class/hwmon/hwmon0/device

if [ -z ${fan_rpm} ]; then
	fan_rpm=$(cat fan1_max)
fi

echo "${fan_rpm}" > fan1_output
echo "${fan_rpm}" > fan1_manual
# doing this multiple times because apple is a bitch
echo "${fan_rpm}" > fan1_output
echo "${fan_rpm}" > fan1_manual
echo "${fan_rpm}" > fan1_output
echo "${fan_rpm}" > fan1_manual
echo "${fan_rpm}" > fan1_output
echo "${fan_rpm}" > fan1_manual
echo "${fan_rpm}" > fan1_output
echo "${fan_rpm}" > fan1_manual

