summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-06-03 17:48:36 (EDT)
committer P. J. McDermott <pj@pehjota.net>2018-06-03 17:48:36 (EDT)
commit0277d7e2016c0cb8959520f9544aa57b6b7542b3 (patch)
tree461a676aef9fc3ccb4305b35e7f2ba000d154f7d
parenta3ebcc56c65670f0b7ed4b9ebcf9ff0fe73aac26 (diff)
downloadpc-inst-0277d7e2016c0cb8959520f9544aa57b6b7542b3.zip
pc-inst-0277d7e2016c0cb8959520f9544aa57b6b7542b3.tar.gz
pc-inst-0277d7e2016c0cb8959520f9544aa57b6b7542b3.tar.bz2
logi1: Run setleds in /etc/rc.local
-rw-r--r--hosts/logi1/postinst9
1 files changed, 9 insertions, 0 deletions
diff --git a/hosts/logi1/postinst b/hosts/logi1/postinst
index 3f6a0f2..f74fa53 100644
--- a/hosts/logi1/postinst
+++ b/hosts/logi1/postinst
@@ -58,6 +58,15 @@ cat >"${target}/etc/fancontrol" <<-EOF
MINSTOP=hwmon4/device/pwm1=0
EOF
+# Turn on numlock on the VTs.
+cat >"${target}/etc/rc.local" <<'EOF'
+#!/bin/sh -e
+
+for tty in /dev/tty[1-6]; do
+ /usr/bin/setleds -D +num 0<"${tty}"
+done
+EOF
+
# Disable mpd service.
in_target update-rc.d mpd disable