SHA256
1
0
forked from pool/kbd

Accepting request 958329 from home:wolfi323:branches:Base:System

- [kbdsettings] try to run numlockbios from /usr/libexec/kbd/ first
  as Tumbleweed moved to this location a while ago (boo#1179295)

OBS-URL: https://build.opensuse.org/request/show/958329
OBS-URL: https://build.opensuse.org/package/show/Base:System/kbd?expand=0&rev=146
This commit is contained in:
Anna Maresova 2022-03-03 12:46:22 +00:00 committed by Git OBS Bridge
parent 92ac8cb52c
commit b7f0f2b97c
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 1 18:29:13 UTC 2022 - Wolfgang Bauer <wbauer@tmo.at>
- [kbdsettings] try to run numlockbios from /usr/libexec/kbd/ first
as Tumbleweed moved to this location a while ago (boo#1179295)
-------------------------------------------------------------------
Mon Feb 21 10:31:41 UTC 2022 - Fabian Vogt <fvogt@suse.com>

View File

@ -26,7 +26,11 @@ for i in NUM SCR CAPS; do
/usr/bin/setleds -D -$param < /dev/$tty
;;
bios)
bios=$(/usr/lib/kbd/numlockbios 2>/dev/null)
if [ -x /usr/libexec/kbd/numlockbios ]; then
bios=$(/usr/libexec/kbd/numlockbios 2>/dev/null)
else
bios=$(/usr/lib/kbd/numlockbios 2>/dev/null)
fi
if [ $param = "num" ]; then
if [ "$bios" = "on" ]; then
touch /run/numlock-on