Skip to content
Snippets Groups Projects
  • Jo-Philipp Wich's avatar
    73344b9c
    Add sysfixtime init script, replacement of luci_fixtime · 73344b9c
    Jo-Philipp Wich authored
    
    Simply scan for the most recent file in /etc and set
    system time to this file modification time if it's in the future
    It allow some time dependent program to work immediatly
    without waiting for ntpd to sync
    
    v1: v2: bad approach
    v3: simply scan /etc, thanks to Bastian Bittorf for the idea
    v4: use sort -n, thanks to Catalin Patulea
    v5: use [] instead of [[]], thanks to Andreas Mohr
    v6: use openwrt style, thanks to Bastian Bittorf
    
    Signed-off-by: default avatarEtienne CHAMPETIER <etienne.champetier@free.fr>
    
    SVN-Revision: 39422
    73344b9c
    History
    Add sysfixtime init script, replacement of luci_fixtime
    Jo-Philipp Wich authored
    
    Simply scan for the most recent file in /etc and set
    system time to this file modification time if it's in the future
    It allow some time dependent program to work immediatly
    without waiting for ntpd to sync
    
    v1: v2: bad approach
    v3: simply scan /etc, thanks to Bastian Bittorf for the idea
    v4: use sort -n, thanks to Catalin Patulea
    v5: use [] instead of [[]], thanks to Andreas Mohr
    v6: use openwrt style, thanks to Bastian Bittorf
    
    Signed-off-by: default avatarEtienne CHAMPETIER <etienne.champetier@free.fr>
    
    SVN-Revision: 39422