blob: 2dcc8eee192f50acadaa056068ae078403adcacd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/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 [ -f /etc/default/rcS ] ; then
. /etc/default/rcS
fi
if [ yes != "$UTC" ] ; then
if [ yes = "$BADYEAR" ] ; then
/sbin/hwclock --rtc=$dev --systz --localtime --noadjfile --badyear
else
/sbin/hwclock --rtc=$dev --systz --localtime --noadjfile
fi
fi
|