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

« back to all changes in this revision

Viewing changes to debian/hwclock.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 - adjust system clock and timezone
2
 
#
3
 
# The hwclock task adjusts the system clock when the hardware clock is
4
 
# set to localtime (e.g. when dual-booting with Windows), and also
5
 
# ensures that the system timezone is set so that timestamps are written
6
 
# to FAT devices.
7
 
 
8
 
description     "adjust system clock and timezone"
9
 
 
10
 
start on starting mountall
11
 
 
12
 
task
13
 
 
14
 
script
15
 
    . /etc/default/rcS
16
 
    [ "$UTC" = "yes" ] && tz="--utc" || tz="--localtime"
17
 
    [ "$BADYEAR" = "yes" ] && badyear="--badyear"
18
 
    exec hwclock --systz $tz --noadjfile $badyear
19
 
end script