summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full
diff options
context:
space:
mode:
authorDaniel Dickinson <cshoredaniel@users.noreply.github.com>2017-01-16 01:49:21 -0500
committerGitHub <noreply@github.com>2017-01-16 01:49:21 -0500
commit2cb780c8cc9dce4a3867f6ecb8611be0954d71ef (patch)
tree957da962d103ad6f957bc72c57ee46ab6a70eb58 /modules/luci-mod-admin-full
parent98d1a09b577a0365ae0a98980d49c6ef5ffe70eb (diff)
parentb064c5c209e99d97c825ecfab42bc8b2e3bced54 (diff)
Merge pull request #861 from ynezz/master
luci-mod-admin-full: Store system time into RTC also
Diffstat (limited to 'modules/luci-mod-admin-full')
-rw-r--r--modules/luci-mod-admin-full/luasrc/controller/admin/system.lua1
1 files changed, 1 insertions, 0 deletions
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 cf8cfb5d2..5478afa3e 100644
--- 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