~ubuntu-branches/ubuntu/maverick/util-linux/maverick-security

« back to all changes in this revision

Viewing changes to debian/hwclock.rules

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2009-09-15 15:14:58 UTC
  • Revision ID: james.westby@ubuntu.com-20090915151458-srmn71i5663htba3
Tags: 2.16-1ubuntu2
FFE LP: #427356.

* Replace hwclock udev rule with an Upstart job.  This has never needed
  to be a udev rule after all since it doesn't access the hardware!
* Replace init script with an Upstart job run on shutdown.
* debian/control:
  - Bump build-dependency on debhelper for Upstart-aware dh_installinit
  - Add missing ${misc:Depends}

* Fix build with newer glibc due to versionsort() prototype change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Reset the System Clock to UTC if the hardware clock from which it was
2
 
# copied by the kernel was in localtime.
3
 
 
4
 
KERNEL=="rtc0", IMPORT{file}="/etc/default/rcS"
5
 
KERNEL=="rtc0", ENV{UTC}!="yes", ENV{BADYEAR}!="yes", \
6
 
        RUN+="/sbin/hwclock --rtc=$root/$name --systz --localtime --noadjfile"
7
 
KERNEL=="rtc0", ENV{UTC}!="yes", ENV{BADYEAR}=="yes", \
8
 
        RUN+="/sbin/hwclock --rtc=$root/$name --systz --localtime --noadjfile --badyear"