enablefanminrpmoverride/install.sh
2019-12-01 10:50:21 -08:00

17 lines
347 B
Bash

#!/bin/bash
bye() {
echo "$1"
cd /
rm -rf $orig_dir
exit
}
orig_dir=`pwd`
grep -v FAN_MIN_RPM_OVERRIDE_SUPPORT /etc/default/services > /tmp/services.$$
echo "FAN_MIN_RPM_OVERRIDE_SUPPORT=1" >> /tmp/services.$$
cp /tmp/services.$$ /etc/default/services
rm -f /tmp/services.$$
bye "Successfully enabled Fan Minimum RPM Override support."