~ubuntu-branches/ubuntu/lucid/hal/lucid

« back to all changes in this revision

Viewing changes to debian/debian-setup-keyboard

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-06-30 18:19:24 UTC
  • Revision ID: james.westby@ubuntu.com-20090630181924-tv01jvmwo84xc6k7
Tags: 0.5.12+git20090626-0ubuntu2
Drop debian-setup-keyboard and debian/10-x11-keymap.fdi, shipped in xorg
now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
#
3
 
# borrowed from Fedora and modified to work with console-setup
4
 
#
5
 
 
6
 
[ -x /usr/bin/hal-set-property ] || exit 0
7
 
 
8
 
. /etc/default/console-setup > /dev/null 2>&1 || exit 0
9
 
 
10
 
hal_set () {
11
 
    if [ -n "$2" ]; then
12
 
        /usr/bin/hal-set-property --direct --udi "$UDI" --key input.xkb.$1 --string "$2"
13
 
    else
14
 
        /usr/bin/hal-set-property --direct --udi "$UDI" --key input.xkb.$1 --remove
15
 
    fi
16
 
}
17
 
 
18
 
hal_set model $XKBMODEL
19
 
hal_set layout $XKBLAYOUT
20
 
hal_set variant $XKBVARIANT
21
 
hal_set options $XKBOPTIONS
22
 
# hardcoded here for clarity, although the driver already forces it
23
 
hal_set rules evdev