Commit 957c515e authored by Natanael Copa's avatar Natanael Copa

main/kbd: provide bkeymaps for backwards compat

so we dont break scripts that tries to install bkeymaps
parent 21dcbfdc
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=kbd
pkgver=2.0.4
pkgrel=1
pkgrel=2
pkgdesc="Tools for configuring the console (keyboard, virtual terminals, etc.)"
url="http://ftp.altlinux.org/pub/people/legion/kbd"
arch="all"
......@@ -132,6 +132,7 @@ bkeymaps() {
pkgdesc="X.org-derived binary keymaps"
depends=
replaces="bkeymaps"
provides="bkeymaps"
mkdir -p "$subpkgdir$_bmapdir"
local map variant layout; for map in "$pkgdir$_xmapdir"/*.map.gz; do
......
diff --git a/src/loadkeys.c b/src/loadkeys.c
index 8b8e7a1..b3f7fea 100644
--- a/src/loadkeys.c
+++ b/src/loadkeys.c
@@ -174,7 +174,8 @@ main(int argc, char *argv[])
}
/* get console */
- fd = getfd(console);
+ if (!(options & OPT_B))
+ fd = getfd(console);
if (!(options & OPT_M) && !(options & OPT_B)) {
/* check whether the keyboard is in Unicode mode */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment