blob: 5ff1e25e623ca8b0a56b50c107498814a87b69c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
# Reference:
# https://askubuntu.com/questions/21316/how-can-i-customize-a-system-locale
set -e
fix1() {
grep -qe 'en_BS UTF-8' $1 || echo 'en_BS UTF-8' >> $1
grep -qe 'en_BS.UTF-8 UTF-8' $1 || echo 'en_BS.UTF-8 UTF-8' >> $1
}
case "$1" in
configure|abort-upgrade|abort-remove|abort-deconfigure)
localedef --quiet --force --inputfile /usr/share/i18n/locales/en_BS --charmap UTF-8 en_BS.utf8
fix1 /usr/share/i18n/SUPPORTED
fix1 /etc/locale.gen
locale-gen
update-locale LC_TIME=en_BS
;;
*)
echo "postinst called with unknown argument '\$1'" 1>&2
exit 1
;;
esac
#DEBHELPER#
exit 0
|