blob: 2986ff33dcccc5826428f1c012fd64a3ef7a5447 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
post_install() {
if ! grep -q '^#\?\s*en_NL' /etc/locale.gen
then
echo "#en_NL.UTF-8 UTF-8" >> /etc/locale.gen
fi
if ! grep -q '^en_NL' /etc/locale.gen
then
echo "Uncomment the 'en_NL.UTF-8 UTF-8' line in /etc/locale.gen and run locale-gen as root to enable the en_NL locale"
fi
}
pre_remove() {
if grep -q '^en_NL' /etc/locale.gen
then
echo "Disabling en_NL locale"
sed -i 's/^en_NL/#en_NL/' /etc/locale.gen
locale-gen
fi
}
|