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.
This commit is contained in:
Thomas Deutschmann 2021-03-19 01:42:49 +01:00 committed by William Hubbs
parent 897c2c00ef
commit 1878a74a12

View File

@ -42,6 +42,8 @@ start()
stop() stop()
{ {
yesno $RC_GOINGDOWN && return 0
ebegin "Disabling numlock on ttys" ebegin "Disabling numlock on ttys"
_setleds - _setleds -
eend $? "Failed to disable numlock" eend $? "Failed to disable numlock"