This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/sh | |
| # | |
| # Script: fetch-ntp | |
| # | |
| # script to get time from time server as quickly as possible | |
| # call from init-start as "/jffs/scripts/fetch-ntp ww.xx.yy.zz cc &" | |
| # where ww.xx.yy.zz is IP address (duh!) and cc is number of seconds | |
| # to loop; if cc is not specified, defaults to 60 seconds | |
| # Do not use URL! use IP only so we don't wait for DNS to come up | |
| # `&` at end is critical - spawns this as an asynchronous task and continues |