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

« back to all changes in this revision

Viewing changes to debian/hwclock.hwclock-save.upstart

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2009-09-15 23:33:25 UTC
  • Revision ID: james.westby@ubuntu.com-20090915233325-ss94sspy80r88pf2
Tags: 2.16-1ubuntu3
* Rename upstart jobs in source package, to fix the failure to include
  them when building the util-linux binary.
* Rename calls to update-rc.d in the util-linux postinst, which are going
  to fail on new installs because we no longer ship an init script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# hwclock-save - save system clock to hardware clock
2
 
#
3
 
# This task saves the time from the system clock back to the hardware
4
 
# clock on shutdown.
5
 
 
6
 
description     "save system clock to hardware clock"
7
 
 
8
 
start on runlevel [06]
9
 
 
10
 
task
11
 
 
12
 
script
13
 
    . /etc/default/rcS
14
 
    [ "$UTC" = "yes" ] && tz="--utc" || tz="--localtime"
15
 
    [ "$BADYEAR" = "yes" ] && badyear="--badyear"
16
 
    exec hwclock --rtc=/dev/rtc0 --systohc $tz --noadjfile $badyear
17
 
end script