diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:39 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:05 +0100 |
commit | 8363c6c595d8f1a3fdd6af8a4965b628d9ce4088 (patch) | |
tree | 69dd34b7ae62bb2a48f0927869824408c8fae2dc /scripts/live-bottom/02_timezone | |
parent | 74f8c4c954a06ebc99be06ad8b77e0ef0880b30e (diff) | |
download | live-boot-8363c6c595d8f1a3fdd6af8a4965b628d9ce4088.tar.gz live-boot-8363c6c595d8f1a3fdd6af8a4965b628d9ce4088.zip |
Adding live-initramfs 1.91.3-1.
Diffstat (limited to 'scripts/live-bottom/02_timezone')
-rwxr-xr-x | scripts/live-bottom/02_timezone | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/live-bottom/02_timezone b/scripts/live-bottom/02_timezone index bafc426..10b634e 100755 --- a/scripts/live-bottom/02_timezone +++ b/scripts/live-bottom/02_timezone @@ -26,6 +26,20 @@ log_begin_msg "Setting timezone..." # live-initramfs script -cp -f /root/usr/share/zoneinfo/UTC /root/etc/localtime +if [ -n "${TIMEZONE}" ]; then + area="$(echo ${TIMEZONE} | cut -f1 -d '/')" + zone="$(echo ${TIMEZONE} | cut -f2 -d '/')" + chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null <<EOF +set tzdata/Areas $area +set tzdata/Zones/$area $zone +EOF + cp -f /root/usr/share/zoneinfo/${area}/${zone} /root/etc/localtime +else + chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null <<EOF +set tzdata/Areas Etc +set tzdata/Zones/Etc UTC +EOF + cp -f /root/usr/share/zoneinfo/UTC /root/etc/localtime +fi log_end_msg |