From 1878a74a124e12fbdc3fe3286d81045b9198d424 Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Fri, 19 Mar 2021 01:42:49 +0100 Subject: [PATCH] numlock: Don't disable numlock on shutdown When dealing with remote consoles, a shutdown could disable host's numlock which is not desired. This fixes #413. --- init.d/numlock.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.d/numlock.in b/init.d/numlock.in index 6c33c95f..b3cf8ed3 100644 --- a/init.d/numlock.in +++ b/init.d/numlock.in @@ -42,6 +42,8 @@ start() stop() { + yesno $RC_GOINGDOWN && return 0 + ebegin "Disabling numlock on ttys" _setleds - eend $? "Failed to disable numlock"