summaryrefslogtreecommitdiffstats
path: root/debian/hwclock-set
blob: fec65edd6e215e75d20ca7897bd1a4600eb12ec2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# Reset the System Clock to UTC if the hardware clock from which it
# was copied by the kernel was in localtime.

dev=$1

if [ -e /run/systemd/system ] ; then
    exit 0
fi

/sbin/hwclock --rtc=$dev --systz
/sbin/hwclock --rtc=$dev --hctosys