projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
luci-mod-admin-full: Store system time into RTC also
[project/luci.git]
/
modules
/
luci-mod-admin-full
/
luasrc
/
controller
/
admin
/
system.lua
diff --git
a/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
b/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
index
cf8cfb5
..
5478afa
100644
(file)
--- a/
modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
+++ b/
modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
@@
-52,6
+52,7
@@
function action_clock_status()
luci.sys.call("date -s '%04d-%02d-%02d %02d:%02d:%02d'" %{
date.year, date.month, date.day, date.hour, date.min, date.sec
})
+ luci.sys.call("/etc/init.d/sysfixtime restart")
end
end