diff options
Diffstat (limited to 'hosts/logi1/postinst')
-rw-r--r-- | hosts/logi1/postinst | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/hosts/logi1/postinst b/hosts/logi1/postinst index f9a27e9..aa5054e 100644 --- a/hosts/logi1/postinst +++ b/hosts/logi1/postinst @@ -29,12 +29,30 @@ cat >"${target}/etc/modprobe.d/ast.conf" <<-EOF blacklist ast EOF -# Set up fancontrol. +# Set up sensors and fancontrol. Ensure that k10temp and fam15h_power are +# loaded in a predictable order. +cat >"${target}/etc/modprobe.d/sensors.conf" <<-EOF + blacklist k10temp + blacklist fam15h_power + EOF cat >"${target}/etc/modules" <<-EOF + k10temp + fam15h_power w83627ehf w83795 EOF -# TODO: /etc/fancontrol +cat >"${target}/etc/fancontrol" <<-EOF + # Configuration file generated by pwmconfig, changes will be lost + INTERVAL=5 + DEVPATH=hwmon1=devices/pci0000:00/0000:00:18.3 hwmon4=devices/pci0000:00/0000:00:14.0/i2c-1/1-002f + DEVNAME=hwmon1=k10temp hwmon4=w83795g + FCTEMPS=hwmon4/device/pwm1=hwmon1/temp1_input + FCFANS= hwmon4/device/pwm1=hwmon4/device/fan1_input + MINTEMP=hwmon4/device/pwm1=30 + MAXTEMP=hwmon4/device/pwm1=60 + MINSTART=hwmon4/device/pwm1=150 + MINSTOP=hwmon4/device/pwm1=0 + EOF # Disable mpd service. in_target update-rc.d mpd disable |