versalogic_vl-mpeu-g2_ntp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
versalogic_vl-mpeu-g2_ntp [2014/06/21 19:11] – [Configure, firmware update ublox NEO-7 module] admin | versalogic_vl-mpeu-g2_ntp [2015/01/24 17:40] – [Leap second file] admin | ||
---|---|---|---|
Line 136: | Line 136: | ||
* Install lftp. < | * Install lftp. < | ||
- | * Create leap second download script | + | * Create leap second download script |
- | + | ||
- | # This script will download the latest leap second file, | + | |
- | # update the NTP configuration and restart ntpd. | + | |
- | + | ||
- | # Leap second file location | + | |
- | # | + | |
- | leapremote=" | + | |
- | + | ||
- | # Local file name | + | |
- | leaplocaldir="/ | + | |
- | leaplocalfile=" | + | |
- | + | ||
- | # Get latest leap second file | + | |
- | / | + | |
- | if [ $? -ne 0 ]; then | + | |
- | echo "FTP problem, exiting." | + | |
- | exit 1 | + | |
- | fi | + | |
- | + | ||
- | if [ -f " | + | |
- | echo "File $leaplocaldir$(cat /tmp/leap) already exists. Not downloading." | + | |
- | else | + | |
- | cd " | + | |
- | / | + | |
- | ln -sfn " | + | |
- | service ntp restart | + | |
- | fi</ | + | |
- | * Change executable mode < | + | |
- | * Download new file weekly. Create **/ | + | |
- | + | ||
- | / | + | |
* Change executable mode < | * Change executable mode < | ||
====Configure, | ====Configure, |
versalogic_vl-mpeu-g2_ntp.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1