Merge pull request #861 from ynezz/master
luci-mod-admin-full: Store system time into RTC also
This commit is contained in:
commit
2cb780c8cc
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ function action_clock_status()
|
||||||
luci.sys.call("date -s '%04d-%02d-%02d %02d:%02d:%02d'" %{
|
luci.sys.call("date -s '%04d-%02d-%02d %02d:%02d:%02d'" %{
|
||||||
date.year, date.month, date.day, date.hour, date.min, date.sec
|
date.year, date.month, date.day, date.hour, date.min, date.sec
|
||||||
})
|
})
|
||||||
|
luci.sys.call("/etc/init.d/sysfixtime restart")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue