Hi

----- Mail original -----
> De: "Catalin Patulea" <[email protected]>
> À: "OpenWrt Development List" <[email protected]>
> Envoyé: Vendredi 3 Janvier 2014 19:39:33
> Objet: Re: [OpenWrt-Devel] [PATCH v3] Add sysfixtime init script, replacement 
> of luci_fixtime
> 
> On Jan 3, 2014 1:29 PM, "Etienne CHAMPETIER" <
> [email protected] > wrote:
> > 
> > +
> > +boot() {
> > + CURTIME=`date +%s`
> > + MAXTIME=`find /etc -type f -exec date +%s -r {} \; | sort | tail
> > -n1`
> > + [[ $CURTIME -lt $MAXTIME ]] && \
> Strictly speaking, should probably be 'sort -n'.
good catch !

> 
> > + date -s @$MAXTIME && \
> > + /usr/bin/logger -t sysfixtime -p daemon.notice "Time fixed"
> > +}
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to