Commit Graph

57 Commits

Author SHA1 Message Date
Mike Frysinger d3cf541492 rtcwake: fix typo SATE -> STATE
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-02-15 02:01:00 +01:00
Mike Frysinger c41e134067 rtcwake: include libgen.h for basename prototype
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-02-15 01:36:19 +01:00
David Brownell 1b7c164c49 rtcwake: fix UTC time usage
Timezone handling is broken in this version since it's always
passing UTC time into the kernel, even on systems where the
RTC uses the local timezone.

I think that bug must come from bugs in how the system used to
to originally develop this code handled the RTC timezone.  Both
RTCs should have been kept in UTC ... but only one of them was.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2008-02-08 01:33:39 +01:00
David Brownell 2148b05182 rtcwake: misc cleanups
Cleanups for rtcwake:

  - Minor doc updates:  highlight the framebuffer problem,
    give correct history of this code
  - Improve debug output
  - Fix some linelength bugs

Note that this code predated the sysfs "wakealarm" mechanism, and
works around several now-fixed bugs in the kernel RTC framework.

Nowadays it would make sense to make this program use only the sysfs
interface to the RTC, using "since_epoch" instead of RTC_RD_TIME and
"wakealarm" instead of the four other ioctls.  That could simplify
the mess involved in timezone handling.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-12-03 13:29:47 +01:00
Karel Zak dd12a5b9cb rtcwake: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-10-11 14:27:08 +02:00
Karel Zak a6d35e6d68 rtcwake: fix verbose message
Just make NLS transtalors more happy. (rh#292081)

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-10-04 14:14:58 +02:00
Bernhard Walle 7670038954 misc-util: new rtcwake command
Signed-off-by: Bernhard Walle <bwalle@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-16 13:50:33 +02:00