Merge pull request #580 from wigyori/cc-libpcap
[15.05/openwrt.git] / package / base-files / files / etc / init.d / sysfixtime
index ca19e78..4010e06 100755 (executable)
@@ -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
 }