diff options
author | P. 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) |
commit | 038cb5cdbbfc7c2d3e5b80fa72685f0b545c09eb (patch) | |
tree | 0f699f2ea4ecb52bf682dfc48dc08b320879d27b /hosts/logi1 | |
parent | 421944f57d62c81543ba89a78caffde3381d9ce6 (diff) | |
download | pc-inst-038cb5cdbbfc7c2d3e5b80fa72685f0b545c09eb.zip pc-inst-038cb5cdbbfc7c2d3e5b80fa72685f0b545c09eb.tar.gz pc-inst-038cb5cdbbfc7c2d3e5b80fa72685f0b545c09eb.tar.bz2 |
logi1: Configure nut
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 |