Bug 10764 - Typo in configure_keyboard
Summary: Typo in configure_keyboard
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: console-common-scripts (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: inger@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords: relnote
Depends on:
Blocks:
 
Reported: 2007-02-03 23:18 MSK by Konstantin A Lepikhov (L.A. Kostis)
Modified: 2007-02-12 00:59 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin A Lepikhov (L.A. Kostis) 2007-02-03 23:18:08 MSK
В результате 3639d1c8be975773be5dda56caa4b6445d1b9012 у нас появилась ругань при
удаленном логине:

[lakostis@altlinux ~]$ dumpkeys -1 2>/dev/null |grep "^plain keycode *$BSNUM"
|awk '{print $5}'
[lakostis@altlinux ~]$ dumpkeys -1 | awk
'/^plain[[:space:]]+keycode[[:space:]]+'${BSNUM}'[[:space:]]/ { print $5; exit;}'
Couldnt get a file descriptor referring to the console

Собственно dumpkeys ругается правильно, т.е. /dev/console для него недоступна.

Предлагаемое решение - вернуть 2>/dev/null обратно:

dumpkeys -1 2>/dev/null| awk
'/^plain[[:space:]]+keycode[[:space:]]+'${BSNUM}'[[:space:]]/ { print $5; exit;}'
Comment 1 Konstantin A Lepikhov (L.A. Kostis) 2007-02-12 00:58:12 MSK
Исправлено в console-common-scripts-0.2.2-alt1.3