| 1 |
#!/bin/sh |
| 2 |
# postinst script for gcin |
| 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 |
|
| 13 |
case "$1" in |
| 14 |
configure) |
| 15 |
# Set up default |
| 16 |
ua_inst all_ALL gcin 0 |
| 17 |
ua_inst zh_CN gcin 30 |
| 18 |
ua_inst ja_JP gcin 30 |
| 19 |
ua_inst zh_TW gcin 70 |
| 20 |
;; |
| 21 |
|
| 22 |
abort-upgrade|abort-remove|abort-deconfigure) |
| 23 |
|
| 24 |
;; |
| 25 |
|
| 26 |
*) |
| 27 |
echo "postinst called with unknown argument \`$1'" >&2 |
| 28 |
exit 1 |
| 29 |
;; |
| 30 |
esac |
| 31 |
|
| 32 |
#DEBHELPER# |
| 33 |
|
| 34 |
exit 0 |