From db648bd2daf676bd27e3bb52ba0231a97836a1f8 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 20 Aug 2021 19:45:56 -0400 Subject: alsvid3: Run setleds in /etc/rc.local --- (limited to 'hosts/alsvid3') 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 -- cgit v0.9.1