4
. /usr/share/debconf/confmodule
7
# For now, this is a separate script from tzsetup because we want to ask the
8
# time zone question even if there's only one plausible zone for the
9
# selected language's default country.
11
db_get debian-installer/country
13
# per-country templates are used for countries with multiple choices
14
if db_get "tzsetup/country/$CC"; then
15
db_register "tzsetup/country/$CC" time/zone
16
db_fget time/zone seen
17
if [ "$RET" = false ]; then
20
db_input high time/zone || :
22
exit 10 # back to menu
25
db_register time/zone time/zone # might be registered to something else
26
# espresso-tzmap is the same as tzmap, but this gets us around
27
# packaging awkwardnesses for now; later, oem-config-timezone and
28
# espresso-timezone should be merged into a single tzsetup.deb.
29
zone=$(grep "^$CC" /usr/share/tzsetup/espresso-tzmap | cut -d ' ' -f 2)
30
db_set time/zone "$zone"
31
db_input high time/zone || true
33
exit 10 # back to menu