summaryrefslogtreecommitdiff
path: root/modules/luci-mod-system/root
Commit message (Collapse)AuthorAgeFilesLines
* luci-mod-system: drop not used setInitAction ubus luci permissionChristian Marangi2023-12-301-4/+1
| | | | | | | | | Drop not used setInitAction ubus luci method permission from luci-mod-system-uhttpd and luci-mod-system-ssh. They are not used in the related js files and should be removed as the related js doesn't use/require them. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* luci-mod-system: use new "rc" ubus object for init.d scriptsRafał Miłecki2023-12-301-4/+6
| | | | | | | | | | Convert startup.js and system.js to use the generic ubus rc method to handle /etc/init.d/ scripts for enable/disable/start/restart/reload/stop operation. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> [ reword commit description, convert system.js ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* luci-mod-system: fix time display logicJo-Philipp Wich2021-10-191-1/+2
| | | | | | | | | Use the system/info ubus call to obtain a TZ adjusted epoch value and format the date time string manually instead of relying on the browsers local representation. Fixes: #5454 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: allow configuration of HTTPS redirectionPetr Štetiar2021-09-282-0/+28
| | | | | | | Add a posibility for easy configuration of HTTPS redirection in uHTTPd. References: https://lists.infradead.org/pipermail/openwrt-devel/2020-December/032718.html Signed-off-by: Petr Štetiar <ynezz@true.cz>
* luci-mod-system: improve sysupgrade pageAnsuel Smith2021-08-051-0/+6
| | | | | | | | | | - Add missing -k and -u option from sysupgrade page. - Fix missing check for image verification exit code - Provide the actual reason of the image verification Fixes: #4160 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* luci-mod-system: reload crond upon saving crontabJo-Philipp Wich2021-07-151-1/+2
| | | | | Fixes: #5184 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: use ubus method for rebootRafał Miłecki2020-09-101-1/+2
| | | | | | | It's more generic & convenient than hardcoding /sbin/reboot executable path. procd provides "reboot" method since 2016. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* luci-mod-system: make dropbear pages depend on dropbear executableJo-Philipp Wich2020-05-171-2/+4
| | | | | Fixes: #4052 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: don't make SSH tabs depend on dropbear uciJo-Philipp Wich2020-04-261-4/+2
| | | | | | | | This prevents a situation where the tabs will be disabled by the dispatcher once the last config section has been removed. This would allow a user to disable SSH via the UI but not to reenable it. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* treewide: add ACL annotations to menu entriesJo-Philipp Wich2020-04-171-0/+25
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: convert menu controller to declarative JSONJo-Philipp Wich2020-04-141-0/+111
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: fix dropbear write ACL ruleJo-Philipp Wich2020-04-101-1/+1
| | | | | Fixes: #3872 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* treewide: reorganize base ACLsJo-Philipp Wich2020-04-091-0/+167
Signed-off-by: Jo-Philipp Wich <jo@mein.io>