X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F02_timezone;h=10b634e0ab3119b8f94377f2cb769a89a462073d;hb=refs%2Ftags%2Fdebian%2F1.91.4-1;hp=bafc4266c9b621d6853835385ff1c973d09fcbab;hpb=25bcd436af6202932ad494c8ddd0a49999579924;p=live-boot-grml.git 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 < /dev/null <