From 0277d7e2016c0cb8959520f9544aa57b6b7542b3 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 03 Jun 2018 17:48:36 -0400 Subject: logi1: Run setleds in /etc/rc.local --- 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 -- cgit v0.9.1