summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-07-19 02:11:33 (EDT)
committer P. J. McDermott <pj@pehjota.net>2018-07-19 02:11:33 (EDT)
commit038cb5cdbbfc7c2d3e5b80fa72685f0b545c09eb (patch)
tree0f699f2ea4ecb52bf682dfc48dc08b320879d27b
parent421944f57d62c81543ba89a78caffde3381d9ce6 (diff)
downloadpc-inst-038cb5cdbbfc7c2d3e5b80fa72685f0b545c09eb.zip
pc-inst-038cb5cdbbfc7c2d3e5b80fa72685f0b545c09eb.tar.gz
pc-inst-038cb5cdbbfc7c2d3e5b80fa72685f0b545c09eb.tar.bz2
logi1: Configure nut
-rw-r--r--hosts/logi1/postinst10
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