Skip to content
Snippets Groups Projects
Commit 957c515e authored by Natanael Copa's avatar Natanael Copa
Browse files

main/kbd: provide bkeymaps for backwards compat

so we dont break scripts that tries to install bkeymaps
parent 21dcbfdc
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=kbd pkgname=kbd
pkgver=2.0.4 pkgver=2.0.4
pkgrel=1 pkgrel=2
pkgdesc="Tools for configuring the console (keyboard, virtual terminals, etc.)" pkgdesc="Tools for configuring the console (keyboard, virtual terminals, etc.)"
url="http://ftp.altlinux.org/pub/people/legion/kbd" url="http://ftp.altlinux.org/pub/people/legion/kbd"
arch="all" arch="all"
...@@ -132,6 +132,7 @@ bkeymaps() { ...@@ -132,6 +132,7 @@ bkeymaps() {
pkgdesc="X.org-derived binary keymaps" pkgdesc="X.org-derived binary keymaps"
depends= depends=
replaces="bkeymaps" replaces="bkeymaps"
provides="bkeymaps"
mkdir -p "$subpkgdir$_bmapdir" mkdir -p "$subpkgdir$_bmapdir"
local map variant layout; for map in "$pkgdir$_xmapdir"/*.map.gz; do 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 */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment