From: nbd Date: Sat, 7 Jun 2014 16:14:47 +0000 (+0000) Subject: base-files: fix argument order to date in sysfixtime so that it also works with musl X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=09038f06ccc4aa3c4c42cb7c3aae4a1c39031fe5;p=openwrt.git base-files: fix argument order to date in sysfixtime so that it also works with musl Seems like the reverse order relies on GNU specific getopt hackery which musl does not replicate Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41045 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/base-files/files/etc/init.d/sysfixtime b/package/base-files/files/etc/init.d/sysfixtime index ca19e78e02..4010e06f93 100755 --- a/package/base-files/files/etc/init.d/sysfixtime +++ b/package/base-files/files/etc/init.d/sysfixtime @@ -5,7 +5,7 @@ START=00 boot() { local curtime="$(date +%s)" - local maxtime="$(find /etc -type f -exec date +%s -r {} \; | sort -nr | head -n1)" + local maxtime="$(find /etc -type f -exec date -r {} +%s \; | sort -nr | head -n1)" [ $curtime -lt $maxtime ] && date -s @$maxtime }