Ignore:
Timestamp:
2008-04-23T01:33:19+02:00 (8 years ago)
Author:
agb
Message:

[packages] ntpd

-Split ntpdate off of ntpd's init-script, ntpd works properly without it
-Make ntpd start just after ntpdate (if both are installed)
-UCI config for ntpdate may be added, but ntpdate will be retired upstream in the future

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/ntpd/files/ntpd.init

    r10189 r10920  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2008 OpenWrt.org 
    33 
    4 START=60 
     4START=65 
    55 
    6 STEP_SERVERS="0.openwrt.pool.ntp.org 1.openwrt.pool.ntp.org 2.openwrt.pool.ntp.org" 
    76PIDFILE="/var/run/ntpd.pid" 
    8 TIMEOUT="2" # in seconds 
    97 
    108start() { 
     
    1210#       /usr/sbin/setgarmin -d /dev/gps -c /etc/setgarmin.conf 
    1311        stop 
    14         for s in $STEP_SERVERS ; do 
    15                 /usr/sbin/ntpdate -s -b -u -t "$TIMEOUT" "$s" && break 
    16         done 
    1712        /usr/sbin/ntpd -g -p $PIDFILE 
    1813} 
Note: See TracChangeset for help on using the changeset viewer.