Re: hwclock: NVRAM flat battery sets date to 1904

2009-05-19 Thread James Tappin
On Sat, 16 May 2009 12:08:21 +0200 Børge Holen holen.bo...@gmail.com wrote: BH Same thing that happens when one forget to compile in rtc? BH Done that a few times. BH BH On 16. mai. 2009, at 09.47, Rogério Brito rbr...@ime.usp.br wrote: BH BH Hi, Mark. BH BH On May 16 2009, Mark Purcell

Re: hwclock: NVRAM flat battery sets date to 1904

2009-05-16 Thread Rogério Brito
Hi, Mark. On May 16 2009, Mark Purcell wrote: + hwclock --set --date 2009-5-16 I have always done something like that with my system, since openbsd's nntpd doesn't seem to be able to update the time initially when it is too far from the current date. A more flexible solution (while still

Re: hwclock: NVRAM flat battery sets date to 1904

2009-05-16 Thread Julien BLACHE
Mark Purcell m...@debian.org wrote: Hi, +if `/sbin/hwclock | /bin/grep -q 1904`; then It's not necessarily 1904. Can be 1903 or 1933 too. You're better off checking the year isn't 2000, for instance. JB. -- Julien BLACHE - Debian GNU/Linux Developer - jbla...@debian.org Public

Re: hwclock: NVRAM flat battery sets date to 1904

2009-05-16 Thread Børge Holen
Same thing that happens when one forget to compile in rtc? Done that a few times. On 16. mai. 2009, at 09.47, Rogério Brito rbr...@ime.usp.br wrote: Hi, Mark. On May 16 2009, Mark Purcell wrote: + hwclock --set --date 2009-5-16 I have always done something like that with my system,

Re: Bug#520763: hwclock: NVRAM flat battery sets date to 1904

2009-05-16 Thread Jörg Sommer
Hi, Mark Purcell hat am Sat 16. May, 14:57 (+1000) geschrieben: This is a common problem on powerpc ibook's once the NVRAM battery goes flat. Apparently this has been discussed with upstream: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/23426/comments/18 Mark This

Re: Bug#520763: hwclock: NVRAM flat battery sets date to 1904

2009-05-16 Thread Mark Purcell
On Sunday 17 May 2009 03:18:10 Jörg Sommer wrote: I would much more prefer to get prompted for the correct time, because with a wrong time fsck fail due to the last fsck is in the future. But I don't know how to do prompting in init scripts correctly. I did think about this, but didn't go this

Re: Bug#520763: hwclock: NVRAM flat battery sets date to 1904

2009-05-16 Thread Rogério Brito
Hi, Jörg. On May 16 2009, Jörg Sommer wrote: I would much more prefer to get prompted for the correct time, because with a wrong time fsck fail due to the last fsck is in the future. The basic idea is sound. But I don't know how to do prompting in init scripts correctly. But the problem

hwclock: NVRAM flat battery sets date to 1904

2009-05-15 Thread Mark Purcell
retitle 520763 hwclock: NVRAM flat battery sets date to 1904 severity important tags 520763 patch thanks This is a common problem on powerpc ibook's once the NVRAM battery goes flat. Apparently this has been discussed with upstream: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug