Hi, On Fri, Jan 03, 2014 at 10:10:42PM +0100, openwrt-devel-requ...@lists.openwrt.org wrote: > From: Etienne CHAMPETIER <etienne.champet...@free.fr> > +#!/bin/sh /etc/rc.common ^^^^^^^^^^^^^^
> +# Copyright (C) 2013-2014 OpenWrt.org > + > +START=00 > + > +boot() { > + CURTIME=`date +%s` > + MAXTIME=`find /etc -type f -exec date +%s -r {} \; | sort -nr | head > -n1` > + [[ $CURTIME -lt $MAXTIME ]] && \ Ain't that a bashism? Most likely ought to be [ cond ] && ... OK, Debian checkbashisms does flag that: $ checkbashisms /tmp/test1.sh possible bashism in /tmp/test1.sh line 11 (alternative test command ([[ foo ]] should be [ foo ])): [[ $CURTIME -lt $MAXTIME ]] && \ date -s @$MAXTIME && \ /usr/bin/logger -t sysfixtime -p daemon.notice "Time fixed" Polite excuse for the oh so usual "bzzzzt"-type mail implicitly included ;) Thanks for this very nice puzzle piece, Andreas Mohr _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel