~mmach/netext73/sysvinit

« back to all changes in this revision

Viewing changes to debian/src/initscripts/usr/lib/udev/hwclock-set

  • Committer: mmach
  • Date: 2023-11-26 16:47:13 UTC
  • Revision ID: netbit73@gmail.com-20231126164713-wzy9kmqvr8q6ydml
308

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Reset the System Clock to UTC if the hardware clock from which it
 
3
# was copied by the kernel was in localtime.
 
4
 
 
5
dev=$1
 
6
 
 
7
if [ -e /run/systemd/system ] ; then
 
8
    exit 0
 
9
fi
 
10
 
 
11
/sbin/hwclock --rtc=$dev --systz
 
12
/sbin/hwclock --rtc=$dev --hctosys