diff options
Diffstat (limited to 'hosts/logi1')
-rw-r--r-- | hosts/logi1/postinst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hosts/logi1/postinst b/hosts/logi1/postinst index e8ac45e..f6652e2 100644 --- a/hosts/logi1/postinst +++ b/hosts/logi1/postinst @@ -58,6 +58,16 @@ cat >"${target}/etc/fancontrol" <<-EOF MINSTOP=hwmon4/device/pwm1=0 EOF +# Set up Network UPS Tools (NUT). +sed -i 's/^MODE=.*$/MODE=standalone/' >"${target}/etc/nut/nut.conf" +cat >>"${target}/etc/nut/ups.conf" <<EOF +[5sc] + driver = usbhid-ups + port = auto + vendorid = 0463 + desc = "EATON 5SC1500" +EOF + # Turn on numlock on the VTs. cat >"${target}/etc/rc.local" <<'EOF' #!/bin/sh -e |