Advertisement
Guest User

unable_to_login.patch

a guest
Jan 19th, 2016
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. Description: Switch input language by Caps Lock
  2.  
  3. --- ./liveinit~ 2016-01-17 11:38:26.243958975 +0300
  4. +++ ./liveinit 2016-01-17 11:46:24.732937759 +0300
  5. @@ -387,7 +387,18 @@
  6. chmod 755 /mnt/overlay/etc/rc.d/rc.keymap
  7. # Set a usable keyboard mapping in X.Org, derived from the console map:
  8. mkdir -p /mnt/overlay/etc/X11/xorg.conf.d
  9. - cat <<EOT > /mnt/overlay/etc/X11/xorg.conf.d/30-keyboard.conf
  10. + case "$(echo $KEYMAP |cut -c1-2)" in
  11. + ru) cat <<EOT > /mnt/overlay/etc/X11/xorg.conf.d/30-keyboard.conf
  12. +Section "InputClass"
  13. + Identifier "keyboard-all"
  14. + Driver "evdev"
  15. + Option "XkbLayout" "us,ru"
  16. + Option "XkbOptions" "grp:caps_toggle,grp_led:caps"
  17. + MatchIsKeyboard "on"
  18. +EndSection
  19. +EOT
  20. + ;;
  21. + *) cat <<EOT > /mnt/overlay/etc/X11/xorg.conf.d/30-keyboard.conf
  22. Section "InputClass"
  23. Identifier "keyboard-all"
  24. Driver "evdev"
  25. @@ -395,6 +406,8 @@
  26. MatchIsKeyboard "on"
  27. EndSection
  28. EOT
  29. + ;;
  30. + esac
  31. fi
  32.  
  33. if [ ! -z "$LOCALE" ]; then
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement