~upstart-devel/upstart/upstart-jobs

« back to all changes in this revision

Viewing changes to vivid/etc/init/hwclock.conf

  • Committer: Dimitri John Ledkov
  • Date: 2014-11-19 12:58:41 UTC
  • Revision ID: dimitri.j.ledkov@intel.com-20141119125841-98dr37roy8dvcv3b
auto update

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