diff options
Diffstat (limited to 'init.d/hwclock')
-rwxr-xr-x | init.d/hwclock | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/init.d/hwclock b/init.d/hwclock new file mode 100755 index 0000000..c488c43 --- /dev/null +++ b/init.d/hwclock @@ -0,0 +1,9 @@ +#!/sbin/runscript + +start() { + ebegin "Setting system time from hardware clock" + modprobe rtc 2>/dev/null + #set the system time from hardware clock + /sbin/hwclock -s -u + eend $? +} |