2014-01-29 21:17:03 +08:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2013-2014 OpenWrt.org
|
|
|
|
|
|
|
|
START=00
|
|
|
|
|
|
|
|
boot() {
|
|
|
|
local curtime="$(date +%s)"
|
2014-06-08 00:14:47 +08:00
|
|
|
local maxtime="$(find /etc -type f -exec date -r {} +%s \; | sort -nr | head -n1)"
|
2014-06-02 20:42:37 +08:00
|
|
|
[ $curtime -lt $maxtime ] && date -s @$maxtime
|
2014-01-29 21:17:03 +08:00
|
|
|
}
|
|
|
|
|