Reorganized numbers and symbols tabs, removed space key and added
[ukeyboard.git] / debian / ukeyboard.postinst
blob23e63ce6f6d9aa4b5e77d636f8cbcbd028bcd1fa
1 #!/bin/sh
3 set -e
5 if ! grep -q ukeyboard /usr/share/X11/xkb/rules/base; then
6 # add ukeyboard symbols
7 sed -i 's/nokia_vndr\/su-8w(%l)/\0\n ukeyboard * = nokia_vndr\/ukeyboard(common)+nokia_vndr\/ukeyboard(%l%_v)/' /usr/share/X11/xkb/rules/base
8 # add types for ukeyboard
9 sed -i 's/$nokiamodels = complete+nokia/\0\n ukeyboard = complete+nokia+ukeyboard/' /usr/share/X11/xkb/rules/base
12 if [ -f /usr/share/applications/hildon-control-panel/cptextinput.desktop ]; then
13 mv -f /usr/share/applications/hildon-control-panel/cptextinput.desktop /usr/share/applications/hildon-control-panel/cptextinput.desktop.removed
16 update-sudoers
18 # temporary disable keyboard layouts that are provided also with ukeyboard
19 layouts="cs_CZ ru_RU"
20 for i in $layouts; do
21 if [ -f /usr/share/keyboards/$i.vkb ]; then
22 if [ ! -h /usr/share/keyboards/$i.vkb ]; then
23 mv /usr/share/keyboards/$i.vkb /usr/share/keyboards/$i.vkb.removed
26 done
28 case "$1" in
29 configure)
30 if [ -x /usr/bin/ukeyboard-postinst ]; then
31 /usr/bin/ukeyboard-postinst
34 abort-upgrade|abort-remove|abort-deconfigure)
37 exit 0
38 esac
40 exit 0