Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=wipv.git;a=commitdiff;h=46ab47592492e0ed786dafce8388c66e86bb601b

commit 46ab47592492e0ed786dafce8388c66e86bb601b
Author: Krisztian VASAS <i...@frugalware.org>
Date:   Mon Jul 19 21:43:50 2010 +0200

xorg-server-1.8.2-3-i686
- changed Xorg layout detection based on tty console layout

diff --git a/source/x11/xorg-server/xorg-server.install 
b/source/x11/xorg-server/xorg-server.install
index f24da12..de863df 100644
--- a/source/x11/xorg-server/xorg-server.install
+++ b/source/x11/xorg-server/xorg-server.install
@@ -1,9 +1,11 @@
post_install()
{
-       layout="us"
-       if [ -n "$LANG" -a "$LANG" != "en_US" ]; then
-               layout=${LANG:0:2}
-       fi
+#      layout="us"
+#      if [ -n "$LANG" -a "$LANG" != "en_US" ]; then
+#              layout=${LANG:0:2}
+#      fi
+       # setting the layout from the tty console layout created by the 
installer
+       layout=`cat /etc/sysconfig/keymap | awk -F'=' '/keymap=/ {print $2}'`
echo "Update layout keyboard with $layout"
sed -i "/xkb_layout/s/Keyboard_Layout/$layout/" 
/etc/X11/xorg.conf.d/10-evdev.conf
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to