6 Software
User Manual 44/374
Interface at rc.conf:
Activate / Deactivate SNTP
# Activate "YES" / deactivate "NO" export TRY_SNTP in /etc/init.d/rc.conf
export TRY_SNTP="YES"
Example: How to set system time:
Set the system time by using the path /bin/date that is provided by the BusyBox multi-call binary. In this
example the system time is set to Mon Nov 5 10:53:00 UTC 2012.
# date -s 201211051053.00
Mon Nov 5 10:53:00 UTC 2012
Low Level Hardware Access
This user space interface gets the current date
from the kernel clock.
p1:
<YYYY-MM-DD>
returns the date formated like the given
syntax
This user space interface gets the current time
from the kernel clock.
p1:
<hh:mm:ss>
returns the time formated like the given
syntax
/sys/class/rtc/rtc0/wakealarm
This user space interface can be used for setting
the hardware RTC wakeup alarm. After a shut
down of the RTC, the wakeup alarm will be
activated.
p1:
< 0 >
sets off hardware RTC wakeup alarm
< 1..n >
sets the countdown in seconds for startup
If the SNTP client is not activated and the settime script is not fully implemented, then the user has to
configure the SNTP client and may have to changed the settime script if necessary.