diff options
author | Thomas Deutschmann <whissi@whissi.de> | 2021-03-19 01:42:49 +0100 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2021-03-19 10:36:31 -0500 |
commit | 1878a74a124e12fbdc3fe3286d81045b9198d424 (patch) | |
tree | a425f0add8ad2a0e0e1eadc51a31b228c1f2c771 /init.d/numlock.in | |
parent | 897c2c00eff0dd73717b0903548912063cfd9f01 (diff) |
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.
Diffstat (limited to 'init.d/numlock.in')
-rw-r--r-- | init.d/numlock.in | 2 |
1 files changed, 2 insertions, 0 deletions
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" |