From 281f4158858d202a0b5d63e145e7f1e927266587 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 7 Jun 2014 16:14:47 +0000 Subject: [PATCH] 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 SVN-Revision: 41045 --- package/base-files/files/etc/init.d/sysfixtime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/etc/init.d/sysfixtime b/package/base-files/files/etc/init.d/sysfixtime index ca19e78e025..4010e06f936 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 }