setxkbmap: simplify layout setup

IMPORT{file} is enough
This commit is contained in:
Stefan Saraev 2014-02-22 20:38:04 +02:00
parent 0086e82eb8
commit 025685f85e
3 changed files with 1 additions and 29 deletions

View File

@ -31,8 +31,3 @@ PKG_LONGDESC="Setxkbmap sets the keyboard using the X Keyboard Extension."
PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"
post_makeinstall_target() {
mkdir -p $INSTALL/usr/lib/udev
cp $PKG_DIR/scripts/xkb-setup $INSTALL/usr/lib/udev
}

View File

@ -1,23 +0,0 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# OpenELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
if [ -f /storage/.cache/xkb/layout ] ; then
cat /storage/.cache/xkb/layout
fi

View File

@ -2,7 +2,7 @@ ACTION!="add|change", GOTO="xorg_xkb_end"
SUBSYSTEM!="input", GOTO="xorg_xkb_end"
KERNEL!="event*", GOTO="xorg_xkb_end"
ENV{ID_INPUT_KEY}=="?*", IMPORT{program}="xkb-setup"
ENV{ID_INPUT_KEY}=="?*", IMPORT{file}="/storage/.cache/xkb/layout"
LABEL="xorg_xkb_end"