Debian Codegraph @

distro/debian/postinst

raw
1 #!/bin/sh
2 # postinst script for hime
3
4 set -e
5
6 ua_inst() {
7 update-alternatives \
8 --install /etc/X11/xinit/xinput.d/"$1" xinput-"$1" \
9 /etc/X11/xinit/xinput.d/"$2" "$3"
10 }
11
12 case "$1" in
13 configure)
14 # Set up default
15 ua_inst all_ALL hime 0
16 ua_inst zh_CN hime 30
17 ua_inst zh_TW hime 50
18 ;;
19
20 abort-upgrade | abort-remove | abort-deconfigure) ;;
21
22 *)
23 echo "postinst called with unknown argument \`$1'" >&2
24 exit 1
25 ;;
26 esac
27
28 #DEBHELPER#
29
30 exit 0