Changeset 10355


Ignore:
Timestamp:
2008-02-02T03:13:58+01:00 (10 years ago)
Author:
nbd
Message:

ntpclient: initial frequency offset configuration and adjtimex invocation

This adds a new config file section "ntpdrift" to /etc/config/ntpclient
to support setting an initial value "freq" for frequency offset.
Changes /etc/hotplug.d/iface/20-ntpclient to call adjtimex
and do an initial frequency offset before starting ntpclient.

Signed-off-by: Steffen Hoffmann <hoff.st@…>

Location:
packages/net/ntpclient/files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/ntpclient/files/ntpclient.config

    r10353 r10355  
    1818        option port     '123' 
    1919        option count    '1' 
     20 
     21config ntpdrift 
     22        option freq     '0' 
  • packages/net/ntpclient/files/ntpclient.hotplug

    r10189 r10355  
    99        local cfgtype 
    1010        config_get cfgtype "$cfg" TYPE 
     11 
     12        # initial frequency offset, if configured 
     13        case "$cfgtype" in 
     14                ntpdrift) 
     15                        config_get freq         $cfg freq 
     16 
     17                        if [ ! "$freq" = "" ]; then 
     18                                adjtimex -f $freq 
     19                        fi 
     20                ;; 
     21        esac 
    1122 
    1223        case "$cfgtype" in 
Note: See TracChangeset for help on using the changeset viewer.