diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-07 16:14:47 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-06-07 16:14:47 +0000 |
commit | 281f4158858d202a0b5d63e145e7f1e927266587 (patch) | |
tree | 8c19d02cff4dfca1f24661fd4cadfb8d32afa616 /package/base-files | |
parent | 6b7ee130940c1177077105c641c72f2908cc4303 (diff) | |
download | mtk-20170518-281f4158858d202a0b5d63e145e7f1e927266587.zip mtk-20170518-281f4158858d202a0b5d63e145e7f1e927266587.tar.gz mtk-20170518-281f4158858d202a0b5d63e145e7f1e927266587.tar.bz2 |
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 <nbd@openwrt.org>
SVN-Revision: 41045
Diffstat (limited to 'package/base-files')
-rwxr-xr-x | package/base-files/files/etc/init.d/sysfixtime | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/sysfixtime b/package/base-files/files/etc/init.d/sysfixtime index ca19e78..4010e06 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 } |