Adjusting the system time, Setting the time manually, Adjusting the system time -9 – Moxa Technologies UC-7420/7410 User Manual

Page 49: Setting the time manually -9

Advertising
background image

UC-7420/7410 User’s Manual

Managing Embedded Linux

3-9

SxxRUNFILE stands for
S: start the run file while linux boots up.
xx: a number between 00-99. The smaller number has a higher priority.
RUNFILE: the file name.

192.168.3.127 – PuTTY

root@Moxa:/ect/rc.d/rc3.d# ls
S19nfs-common S25nfs-user-server

S99showreadyled

S20snmpd S55ssh
S24pcmcia S99rmnologin
root@Moxa:/ect/rc.d/rc3.d# ln –s /root/tcps2-release S60tcps2
root@Moxa:/ect/rc.d/rc3.d# ls
S19nfs-common S25nfs-user-server

S99rmnologin

S20snmpd S55ssh

S99showreadyled

S24pcmcia S60tcps2
root@Moxa:/etc/rc.d/rc3.d#

KxxRUNFILE stands for
K: start the run file while linux shuts down or halts.
xx: a number between 00-99. The smaller number has a higher priority.
RUNFILE: is the file name.

For removing the daemon, you can remove the run file from /etc/rc.d/rc3.d by using the following
command:

#rm –f /etc/rc.d/rc3.d/S60tcps2

Adjusting the System Time

Setting the Time Manually

UC-7420/7410 has two time settings. One is the system time, and the other is the RTC (Real Time
Clock) time kept by the UC-7420/7410 hardware. Use the #date command to query the current
system time or set a new system time. Use #hwclock to query the current RTC time or set a new
RTC time.

Use the following command to query the system time:

#date

Use the following command to query the RTC time:

#hwclock

Use the following command to set the system time:

#date MMDDhhmmYYYY

MM = Month
DD = Date
hhmm = hour and minute
YYYY = Year

Use the following command to set the RTC time:

#hwclock –w

Write current system time to RTC

The following figure illustrates how to update thesystem time and set the RTC time.

Advertising