Re: Updating and displaying CMOS clock

看板FB_questions作者時間11年前 (2014/07/07 14:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串13/28 (看更多)
On Mon, 2014-07-07 at 11:57 +0700, Victor Sudakov wrote: > Olivier Nicole wrote: > > If all you need is a daily update, why not a cron to restart ntp once > > a day? The OP ask for a command like Liunx's hwclock, to set up the RTC. I for example on Linux do it like that: $ cat /usr/local/bin/tool [snip] ntp) ntpdate ntp.favey.ch hwclock --set --date "$(date)";; [snip] > Because no matter how often you restart ntp, it does not update the > CMOS (hardware) clock. > > My question was about updating the CMOS clock. "In the last episode (Mar 10), Kelly Jones said: > What are the FreeBSD equivalents of hwclock (view/set the BIOS > hardware clock) and adjtimex (adjust clock speed)? I couldn't find > these two well-known Linux commands in ports? FreeBSD sets the hardware clock whenever settimeofday() is called (unless the sysctl machdep.disable_rtc_set is set). I don't think there's a way to retrieve the current hardware clock settings from userland. Linux's adjtimex(2) is called ntp_adjtime(2) in FreeBSD." - http://lists.freebsd.org/pipermail/freebsd-questions/2007-March/144321.html Regards, Ralf _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
文章代碼(AID): #1JkZUUpq (FB_questions)
討論串 (同標題文章)
文章代碼(AID): #1JkZUUpq (FB_questions)