From 28b65ae5914ac85d598ec66c808023b919bc5401 Mon Sep 17 00:00:00 2001 From: Sylvain Herlédan Date: Sun, 7 Jan 2018 15:06:02 +0100 Subject: Add small script to automatically enable numlock using systemd unit files. --- arch_install/setup.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 arch_install/setup.sh (limited to 'arch_install/setup.sh') diff --git a/arch_install/setup.sh b/arch_install/setup.sh new file mode 100755 index 0000000..b97567c --- /dev/null +++ b/arch_install/setup.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +readonly PROGNAME="$(basename "${0}")"; +readonly PROGDIR="$(readlink -f "$(dirname "${0}")")"; +readonly ARGS="${@}"; + +main() +{ + # Activate numlock on virtual consoles + # Equivalent to systemctl edit getty@.service + mkdir -p '/etc/systemd/system/getty@.service.d' + cp 'numlock_virtual_console.conf' \ + '/etc/systemd/system/getty@.service.d/override.conf' +} + +main ${ARGS} +exit 0 -- cgit v1.2.3-70-g09d2