summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system
AgeCommit message (Collapse)Author
2021-01-12luci-base: correct button name on flash page help textHannu Nyman
Correct the help text in the flash page to match the current buttons. 'Continue' instead of "Proceed". Adjust translations. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-01-08luci-mod-system: drop kmod-ledtrig-* dependencySungbo Eo
The kmod packages were dropped from OpenWrt, and the LED triggers are now kernel built-in. Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-12-23luci-mod-system: fix parsing SSH pubkeys with optionsJo-Philipp Wich
Also eliminate some duplicate code while we're at it. Fixes: #4684 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-11-27treewide: transition div tables to actual table markupJo-Philipp Wich
Modern browsers allow decomposing table markup equally well as nested div constructs, therefor migrate our <div> table markup to actual <table> tags but keep the old table/tr/th/td CSS classes for now to allow for a smooth theme transition. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-10-06luci-mod-system: fix uci led option remove callbackFlorian Eckert
fixes #4478 Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-09-10luci-mod-system: use ubus method for rebootRafał Miłecki
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>
2020-07-22luci-mod-system: ignore empty /proc/mtd on flash pageJo-Philipp Wich
A present, but empty /proc/mtd causes validation on the flash page to fail, preventing any other operation. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-07-19treewide: adapt to new luci.xml classSven Roederer
In the previous commit the luci.xml module was created, Let's change all references to the old functions to the new xml-module. Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
2020-05-17luci-mod-system: make dropbear pages depend on dropbear executableJo-Philipp Wich
Fixes: #4052 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-05-13luci-mod-system: fix button disabled statusHuangbin Zhan
Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
2020-05-04luci-mod-system: update LED trigger translationsFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-05-02luci-mod-system: password.js: make event handler attachment more robustJo-Philipp Wich
Do not expect a specific markup structure but use querySelector() to locate the input element. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-26luci-mod-system: don't make SSH tabs depend on dropbear uciJo-Philipp Wich
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>
2020-04-17treewide: add ACL annotations to menu entriesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-system: system.js: disable timesync buttons on readonly mapJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-system: startup.js: disable action buttons on insufficient ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-system: sshkeys.js: make readonly on insufficient ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-system: password.js: make readonly on insufficient ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-system: mounts.js: disable umount button in readonly mapJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-system: flash.js: make readonly on insufficient ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-system: crontab.js: disable textarea on insufficient ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14luci-mod-system: convert menu controller to declarative JSONJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-10luci-mod-system: fix dropbear write ACL ruleJo-Philipp Wich
Fixes: #3872 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-09treewide: reorganize base ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-03treewide: import utility classes explicitlyJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-23luci-mod-system: system.js: rework local time widget markupJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-23luci-mod-system: use proper CSS class for map descriptionJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-23luci-mod-system: use generic .cbi-section-actions style for row actionsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-27luci-mod-system: add led plugin infrastructureFlorian Eckert
This commit creates the possibility that not only kernel-led-triggers can be selected but also application-led-triggers from user space. This is done via a plugin mechanism. The application-led-triggers are scripts that set kernel-led-triggers on system events or services. Until now this has not been possible. The package rssileds is a kind of application-led-trigger. The following new packages are added: * luci-app-ledtrig-rssi (application-led-trigger) * luci-app-ledtrig-switch (kernel-led-trigger) not needed on every most devices * luci-app-ledtrig-usport (kernel-led-trigger) optional trigger Since we have now a plugin mechanism I have added the following triggers as a dependency. So this triggers are now installed per default on LuCI installation. * kmod-ledtrig-default-on * kmod-ledtrig-heartbeat * kmod-ledtrig-netdev * kmod-ledtrig-timer The kernel trigger kmod-ledtrig-usbdev was removed with the commit https://github.com/openwrt/openwrt/commit/d0b50c2770a0e2d54b37153f2801e2e7dc865fa6 So I have not ported the relevant code anymore. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-01-29luci-mod-system: fix zram compression placeholderJo-Philipp Wich
Fixes: #3583 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-23luci-mod-system: remove abbreviation from LED config menu itemHannu Nyman
Remove the abbreviation coding from the menu item, as it does nor work in menu and seems to prevent translation of the menu item. (This was the only menu item in LuCI that had abbr logic.) Reference to #3553 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-01-16luci-base: remove hardcoded cgi-bin pathAnsuel Smith
Currently LuCI can be loaded only when placed in the root of the server as the cgi-bin path are hardcoded. Change the index.html to load the cgi-bin path from the current level. Also add a new entry in the env Object to make the cgi_base path easily accessible. This variable will be based on the position of /cgi-bin/luci. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2019-11-13luci-mod-system: sshkeys.js: do not incorrectly filter ecdsa keys on loadJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-11luci-mod-system: leds.js: display default state as On/OffJo-Philipp Wich
Fixes: #3289 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-04luci-mod-system: validate log_ip as "host" instead of just ipaddrYousong Zhou
Fixes FS#2444 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-11-03treewide: require ui.js explicitlyJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03luci-mod-system: sshkeys.js: explicitely require ui.jsJo-Philipp Wich
While ui.js is implicitely autoloaded by other classes, we need to require it directly in the view to avoid race conditions during rendering. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-mod-system: flash.js: upon sysupgrade, select reconnect ip by keep stateJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-mod-system: flash.js: fix flash erase modalJo-Philipp Wich
The firstboot rpc call might not return, therefor do not wait on promise fullfillment but display modal dialog right away. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-base, luci-mod-system: move file upload handling to ui.jsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-mod-system: use declarative dependencies in controllerJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-base, luci-mod-system: replace luci/setUmount with fs.exec callsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-base, luci-mod-system: replace luci/setReboot with fs.execJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-28luci-mod-system: add missing speed_mask option in leds.jsRichard Yu
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
2019-10-21luci-mod-system: flash.sh: gracefully handle missing sysupgrade.confJo-Philipp Wich
Fixes: #3228 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-21luci-mod-system: sshkeys.js: create authorized_keys as 0600Jo-Philipp Wich
Fixes: #3226 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-18luci-mod-system: leds.js: fix handling device optionJo-Philipp Wich
Since the modal overlay map was unable to read the current trigger value, it mistakingly allowed the removal of the device option value. Fix it by finding the option object through lookupOption() instead of relying on a reference. Fixes: #3216 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-16Merge pull request #3145 from ptpt52/refine-flash-resetJo-Philipp Wich
luci-mod-system: refine flash reset
2019-10-07luci-mod-system: flash.js: fix passing sysupgrade optsJo-Philipp Wich
Instead of binding the checked state to the button handler function, bind the underlying checkboxes instead to observe the actual user choice instead of the initial value. This fixes forcing sysupgrade or deselecting keep settings. Reported-by: Hannu Nyman <hannu.nyman@iki.fi> Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07luci-mod-system: refine flash resetChen Minqiang
We determine flash reset capability by checking overlayfs in /proc/mounts Signed-off-by: Chen Minqiang <ptpt52@gmail.com>