projects
/
librecmc
/
librecmc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ca19e78e025bd389935fbbf8f5f1c58a5085d79c
[librecmc/librecmc.git]
/
package
/
base-files
/
files
/
etc
/
init.d
/
sysfixtime
1
#!/bin/sh /etc/rc.common
2
# Copyright (C) 2013-2014 OpenWrt.org
3
4
START=00
5
6
boot() {
7
local curtime="$(date +%s)"
8
local maxtime="$(find /etc -type f -exec date +%s -r {} \; | sort -nr | head -n1)"
9
[ $curtime -lt $maxtime ] && date -s @$maxtime
10
}
11