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 | 3949f5dbb8f0fa67210e4bbfc33f77ae24ac8a40 (patch) | |
tree | 852482acbcea02ace2364fef50880d4b9ef8334e /package/base-files/files/etc/init.d | |
parent | 66f8828fb9a75bad2bd327f37a045b4d8aadd036 (diff) | |
download | upstream-3949f5dbb8f0fa67210e4bbfc33f77ae24ac8a40.tar.gz upstream-3949f5dbb8f0fa67210e4bbfc33f77ae24ac8a40.tar.bz2 upstream-3949f5dbb8f0fa67210e4bbfc33f77ae24ac8a40.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41045 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc/init.d')
-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 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 } |