On 04/20/2010 01:46 PM, Darshaka Pathirana wrote:
> On 04/20/2010 12:16 PM, Bob wrote:
>>>
>> To see what the timezone setting is: 'tzselect'
>> To change the timezone: ’dpkg-reconfigure tzdata’
>> Look at 'man tzselect'
> 
> Thx. I know that. My problem is not about the timezone but much more
> about the hwclock set to UTC vs. local time. According to the
> start-scripts a variable UTC in "/etc/default/rcS" is used to honor
> this behavior.
> 
> And I have no easy way of fixing this (after booting up) without
> fidling around with hwclock and "dpkg-reconfigure tzdata"...

Okay.. after taking a few seconds to really check what was going on
the solution is as simple as:

% hwclock -s --localtime

I've added a localtime module to grml-quickconfig and attached the
patch. Hopefully it will find it's way to the package. ;) (I did /not/
change the changelog.)

Btw: @mika: why was the "Happy Hacking"-output was dropped? I liked it. ;)

Greetings,
 - Darsha
>From f1e79ff51d1ced35352cf9caedd93ef64eb6b7a4 Mon Sep 17 00:00:00 2001
From: Darshaka Pathirana <[email protected]>
Date: Thu, 22 Apr 2010 17:08:52 +0200
Subject: [PATCH] added localtime module

---
 quickconfig/007-localtime.sh |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 quickconfig/007-localtime.sh

diff --git a/quickconfig/007-localtime.sh b/quickconfig/007-localtime.sh
new file mode 100644
index 0000000..b3c0a2a
--- /dev/null
+++ b/quickconfig/007-localtime.sh
@@ -0,0 +1,12 @@
+# localtime module for grml-quickconfig
+LINE='print_line "Set system time to ${HIGHLIGHT}l${NORMAL}ocaltime (current localtime: $(date +%T))"'
+KEY=(l)
+FUNCTION='run hwclock -s --localtime'
+
+# always display entry
+display_entry() {
+    return 0
+}
+
+## END OF FILE #################################################################
+# vim:foldmethod=marker expandtab ai ft=zsh shiftwidth=3
-- 
1.6.3.3

_______________________________________________
Grml mailing list - [email protected]
http://lists.mur.at/mailman/listinfo/grml
join #grml on irc.freenode.org
grml-devel-blog: http://grml.supersized.org/

Reply via email to