kbd_mode: Add -f option and deny dangerous mode switches without it

kbd_mode(1) already had a warning but kbd_mode still performed all
mode changes even when they made keyboards unusable.

The added flag let's the callers try safe changes or force the risky
ones. This change may break scripts but the broken scripts most likely
made the keyboard unusable and should be updated.

Original bug report at:
https://bugs.launchpad.net/ubuntu/+source/kbd/+bug/520546

Signed-off-by: Balint Reczey <balint.reczey@canonical.com>
2 files changed
tree: 6aa0016d30d036faaa4abd894487d3b5b3d62183
  1. config/
  2. contrib/
  3. data/
  4. docs/
  5. m4/
  6. po/
  7. rc/
  8. src/
  9. tests/
  10. .clang-format
  11. .gitignore
  12. .travis.yml
  13. ABOUT-NLS
  14. AUTHORS
  15. autogen.sh
  16. ChangeLog
  17. configure.ac
  18. CREDITS
  19. INSTALL
  20. LICENSE
  21. Makefile.am
  22. NEWS
  23. README.md
README.md

KBD Build Status

This package contains tools for managing Linux console (Linux console, virtual terminals, keyboard, etc.) – mainly, what they do is loading console fonts and keyboard maps.

This distribution contains no binaries - the sources depend on the kernel version - compile them yourself.

The home site of this package:

The latest stable version of kbd can always be found on:

Contributing

See also howto-contribute.

Web interface:

Checkout:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git

NLS (PO TRANSLATIONS)

PO files are maintained by: https://translationproject.org/domain/kbd.html

LICENSE

Kbd is licensed under the GNU General Public License (GPL), version 2, or at your option any later version.

BUG REPORTING

Report problems with this package to the mailing list or to the Alexey Gladkov <gladkov.alexey AT gmail DOT com>.