Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/examples/var_service/ntpd/ntp.script

    r2725 r3621  
    1111dt=`date '+%Y-%m-%d %H:%M:%S'`
    1212
     13echo "`tail -n 199 -- "$0.log" 2>/dev/null`" >"$0.log.$$"
     14
     15if test x"$1" = x"unsync" \
     16; then
     17    # No replies for our NTP requests were seen for some time.
     18    #
     19    # Among more mundate cases like network outages, this happens
     20    # if we ran for a LONG time (days) and ntp server's IP has changed.
     21    # ntpd has no code to re-resolve peers' addresses to IPs,
     22    # we need to help it:
     23    #
     24    echo "$dt: $1"\
     25        "syncronization lost, restarting ntpd"\
     26        >>"$0.log.$$"
     27    mv -- "$0.log.$$" "$0.log"
     28    kill $PPID
     29    exit
     30fi
     31
    1332if test x"$stratum" != x"" \
    1433&& test x"$poll_interval" != x"" \
     
    1635&& test 128 -le "$poll_interval" \
    1736; then
    18     echo "`tail -n 199 -- "$0.log" 2>/dev/null`" >"$0.log.$$"
    1937    echo "$dt: $1"\
    2038        "freq_drift_ppm=$freq_drift_ppm"\
     
    2846fi
    2947
    30 echo "`tail -n 199 -- "$0.log" 2>/dev/null`" >"$0.log.$$"
    3148echo "$dt: $1"\
    3249    "freq_drift_ppm=$freq_drift_ppm"\
Note: See TracChangeset for help on using the changeset viewer.