summaryrefslogtreecommitdiffstats
path: root/hosts/alsvid3/postinst
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-08-20 19:45:56 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-08-20 19:45:56 (EDT)
commitdb648bd2daf676bd27e3bb52ba0231a97836a1f8 (patch)
tree7af4b4049a0e943fc9ad2fb05c07f6ca13621bba /hosts/alsvid3/postinst
parent8fc2ac00f6d9a3924a675717c3d4142e71961e8d (diff)
downloadpc-inst-db648bd2daf676bd27e3bb52ba0231a97836a1f8.zip
pc-inst-db648bd2daf676bd27e3bb52ba0231a97836a1f8.tar.gz
pc-inst-db648bd2daf676bd27e3bb52ba0231a97836a1f8.tar.bz2
alsvid3: Run setleds in /etc/rc.local
Diffstat (limited to 'hosts/alsvid3/postinst')
-rw-r--r--hosts/alsvid3/postinst9
1 files changed, 9 insertions, 0 deletions
diff --git a/hosts/alsvid3/postinst b/hosts/alsvid3/postinst
index 1144bb8..8bb5872 100644
--- a/hosts/alsvid3/postinst
+++ b/hosts/alsvid3/postinst
@@ -27,6 +27,15 @@ cat >"${target}/boot/grub/libreboot_grub.cfg" <<-EOF
boot
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