diff options
author | Patrick 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) |
commit | db648bd2daf676bd27e3bb52ba0231a97836a1f8 (patch) | |
tree | 7af4b4049a0e943fc9ad2fb05c07f6ca13621bba | |
parent | 8fc2ac00f6d9a3924a675717c3d4142e71961e8d (diff) | |
download | pc-inst-db648bd2daf676bd27e3bb52ba0231a97836a1f8.zip pc-inst-db648bd2daf676bd27e3bb52ba0231a97836a1f8.tar.gz pc-inst-db648bd2daf676bd27e3bb52ba0231a97836a1f8.tar.bz2 |
alsvid3: Run setleds in /etc/rc.local
-rw-r--r-- | hosts/alsvid3/pkgs | 3 | ||||
-rw-r--r-- | hosts/alsvid3/postinst | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/hosts/alsvid3/pkgs b/hosts/alsvid3/pkgs index 8ac8b1e..7937bc4 100644 --- a/hosts/alsvid3/pkgs +++ b/hosts/alsvid3/pkgs @@ -2,6 +2,8 @@ bc busybox time +# Console utilities + kbd # Shells bash bash-completion @@ -161,6 +163,7 @@ printer-driver-escpr system-config-printer # X.org X server, drivers, and utilities + numlockx wmctrl x11-xserver-utils xdotool 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 |