#!/bin/sh
set -e

. /usr/share/debconf/confmodule

db_get time/zone
zone="$RET"
echo "$zone" > /target/etc/timezone
rm -f /target/etc/localtime
cp -f /target/usr/share/zoneinfo/$zone /target/etc/localtime
