summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/root
AgeCommit message (Collapse)Author
2024-04-29luci-base: always add ucitrack independently of uci configFlorian Eckert
It is possible that the uci configuration file will be added to the system later. Therefore, ucitrack json definitions are always added to ucitrack triggers and it is not checked whether the uci configuration file exists. Reported-by: Chen Minqiang <ptpt52@gmail.com> Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: move and rename ucitrack luci_splash.jsonFlorian Eckert
Move the json file to where it belongs. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: move and rename ucitrack system.jsonFlorian Eckert
Move the json file to where it belongs. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: move and rename ucitrack odhcpd.jsonFlorian Eckert
Move the json file to where it belongs. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: move and rename ucitrack firewall.jsonFlorian Eckert
Move the json file to where it belongs. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: move and rename ucitrack dropbear.jsonFlorian Eckert
Move the json file to where it belongs. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: move and rename ucitrack dhcp.jsonFlorian Eckert
Move the json file to where it belongs. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: move and rename ucitrack upnp.jsonFlorian Eckert
Move the json file to where it belongs. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: move and rename ucitrack fstab.jsonFlorian Eckert
Move the json file to where it belongs. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: move and rename ucitrack samba.jsonFlorian Eckert
Move the json file to where it belongs. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: move and rename ucitrack network.jsonFlorian Eckert
Move the json file to where it belongs. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: move and rename ucitrack wireless.jsonFlorian Eckert
Move the json file to where it belongs. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: move and rename ucitrack qos.jsonFlorian Eckert
Move the json file to where it belongs. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: move and rename ucitrack tinyproxy.jsonFlorian Eckert
Move the json file to where it belongs. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: remove deprecated ucitrack olsr.jsonFlorian Eckert
In the whole OpenWrt there is no olsr uci config, this must be a leftover and can therefore be deleted. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: remove deprecated ucitrack ntpclient.jsonFlorian Eckert
In the whole OpenWrt there is no ntpclient uci config, this must be a leftover and can therefore be deleted. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: remove deprecated ucitrack httpd.jsonFlorian Eckert
In the whole OpenWrt there is no httpd uci config, this must be a leftover from before uhttpd and can therefore be deleted. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: delete unused luci-reload commandFlorian Eckert
This script is no longer needed and can therefore be deleted. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: use json for ucitrack instead of uciFlorian Eckert
The 'ucitrack' configuration under '/etc/config' defines which service must be restarted on a LuCI change. This uci file defines how all this works together. Additionally there are 'uci-defaults' scripts in the various applications that add additional configurations parameters to this ucitrack file if a service must be reloaded/restarted on a LuCI change. There are some problems with the current implementation: * The uci should be used to configure the system and not for this kind of reload/restart dependency handling on LuCI changes. * On a system update with configuration restore of the 'ucitrack' file the new behavior on LuCI reload/restart could not take into account because the new file is *not* used. This commit converts the handling from uci to json. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-02-17luci-base: extend Expires directive to prevent cachingAndre Heider
Some browsers apparently act on fixed dates only, so add that too. Tested on firefox. Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-08-24luci-base: rpc: add call to enumerate builtin ethernet portsJo-Philipp Wich
Add a new luci/getBuiltinEthernetPorts RPC call which returns a consolidated list of known ethernet ports found in `/etc/board.json`. Add an x86/64 specific workaround which attempts to enumerate missing ethernet devices too. Ref: #6534, #6538 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-08-11luci-base: grammar fixesPaul Dee
Login (n) -> Log (v) in Logout (n) -> Log (v) out Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
2023-04-28luci-base: rpcd: handle swap entries in getBlockDevicesJo-Philipp Wich
Add entries from `/proc/swaps` to the result array as well in order to let the ui properly deal with swap files. Fixes: #6350 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-01-23luci-base: add a hostapd 11ax feature flagAndre Heider
Required for luci to check if it can acually offer that mode. Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-01-23luci-base: remove the hostapd 11n feature flagAndre Heider
This feature flag doesn't exist anymore, see this commit on the main repo: 7c63295bf4 "treewide: remove DRIVER_11N_SUPPORT" Signed-off-by: Andre Heider <a.heider@gmail.com>
2022-12-17luci-base, luci-mod-status: expose LuCI version via ubusJo-Philipp Wich
Instead of scraping the LuCI version from Lua sources, fetch it via ubus in order to be independent from the Lua runtime. Fixes: #6154 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-11-10luci-base: fix ubus luci/getConntrackHelpers reporting with firewall3Jo-Philipp Wich
The uci package name used to iterate the loaded configuration sections must correspond to the file name being loaded. Fixes: https://github.com/openwrt/openwrt/issues/11215 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-base: don't fail getInitList if no indexes can be determinedJo-Philipp Wich
Gracefully handle missing indexes in the luci rpcd plugin getInitList procedure. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25treewide: separate Lua runtime resourcesJo-Philipp Wich
Move classes required for Lua runtime support into a new `luci-lua-runtime` package. Also replace the `luci.http` and `luci.util` classes in `luci-lib-base` with stubbed versions interacting with the ucode based runtime environment. Finally merge `luci-base-ucode` into the remainders of `luci-base`. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-21luci-base: remove 'dsl' feature flagAndre Heider
This is now unused. Signed-off-by: Andre Heider <a.heider@gmail.com>
2022-09-17proper cache control in firefoxDaniel Kucera
Added more meta headers to ensure proper cache control in Firefox. Before this patch, the `/` url hasn't even been requested when opened in Firefox. Signed-off-by: Daniel Kucera <daniel.kucera@gmail.com>
2022-07-08luci-base: use different cookie names for HTTP and HTTPSJo-Philipp Wich
Since HTTP cookies may not overwrite HTTPS ("secure") ones, users are frequently unable to log into LuCI when a stale, "secure" `sysauth` cookie is still present in the browser as it commonly happens after e.g. a sysupgrade operation or when frequently jumping between HTTP and HTTPS access. Rework the dispatcher to set either a `sysauth_http` or `sysauth_https` cookie, depending on the HTTPS state of the server connection and accept both cookie names when verifying the session ID. This allows users to log into a HTTP-only LuCI instance while a stale, "secure" HTTPS cookie is still present. Requires commit 2b0539ef9d ("lucihttp: update to latest Git HEAD") to function properly. Fixes: #5843 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-05-03luci-base: fix DSL feature detectionJo-Philipp Wich
On boards with ADSL instead of VDSL support we need to expect an `/sbin/dsl_cpe_control` instead of an `/sbin/vdsl_cpe_control` executable. Ref: https://forum.openwrt.org/t/dsl-line-stats/126580 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-03-30luci-base: ucitrack: fix broken affects logicJo-Philipp Wich
Changes on a given configuration should trigger change events on affected configurations, not the other way around. Fixes: #5745 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-01-25luci-base: explicitly invoke busybox applet for password changeJo-Philipp Wich
Ensure to invoke the Busybox `passwd` applet to change the system password in a non-interactive manner. Non-Busybox variants may not take the new password input from stdin or use password hashes which are not supported by musl's `crypt()` implementation by default. Fixes: #5629 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-01-22luci-base: fix ubus luci.getConntrackHelpers call with firewall4Jo-Philipp Wich
Fallback to firewall4's helper list if the fw3 one cannot be loaded. Fixes broken zone configuration when firewall4 is installed as backend. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-01-20luci-base: properly detect flow offloading capabilities with nftablesJo-Philipp Wich
When the system is running with nftables instead of iptables, the proprietary XT_FLOWOFFLOAD module will not be present, query the nft equivalent instead. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-01-06luci-app-firewall: initial firewall4 compatibilityStijn Tintel
Initial changes required for firewall4 compatibility: * depend on uc-firewall instead of firewall * detect installed version of firewall and hide incompatible features Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Reviewed-by: Jo-Philipp Wich <jo@mein.io>
2021-11-16luci-base: apply Browser/OS dark mode preference to index redirect pageJo-Philipp Wich
Turn white body, black link into black body, white link if the Browser/OS indicates dark mode preference. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-28luci-base: add "dsl" system featureJo-Philipp Wich
Allows LuCI views to probe DSL presence using `L.hasSystemFeature('dsl')`. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-11luci-base: dispatcher: rework dispatching and menu filtering logicJo-Philipp Wich
- Prefer nodes that do not require authentication over nodes that do - Honour ACL dependencies while resolving firstchild nodes - Consider currently active session while scanning menu tree instead of only loading effective ACLs when a login node is encountered - Do not consider nodes for firstchild dispatching which specify a special "firstchild_ineligible" property - Hide menu nodes that have no accessible children Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-02-13luci-base: remove deprecated radvd from ucitrackHannu Nyman
Cleanup /etc/config/ucitrack by removing 'radvd' affect item from network, as the radvd package has deprecated by odhcpd and odhcp6c in 2014. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-01-02luci-mod-network: skip check for 802.11w featureDobroslaw Kijowski
OpenWrt commit 1a9b896d ("treewide: nuke DRIVER_11W_SUPPORT") enables 802.11w feature for all wpad/hostapd configurations. The feature flag was removed at all but for the compatibility reasons 11w is still advertised (but there's a plan to nuke it also) [1]. Remove conditional 802.11w LuCI support to match current behavior. [1]: https://github.com/openwrt/openwrt/pull/3347 Signed-off-by: Dobroslaw Kijowski <dobo90@gmail.com>
2020-10-31luci-base: fix syntax error in hostapd featuresMartin Böh
Signed-off-by: Martin Böh <mart.b@outlook.de>
2020-10-11luci-base: check support for hostapd wpsAnsuel Smith
Check if hostapd supports wps pushbutton features. (wps is now supported by ubus instead of using hostapd_cli) Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-08-02luci-base: Fixed delayed portstatus loading on R7800Nicolas Thumann
Signed-off-by: Nicolas Thumann <me@n-thumann.de>
2020-06-16Merge pull request #4127 from blocktrron/luci-wep-featuresJo-Philipp Wich
luci-mod-network: query WEP support
2020-06-16luci-base: move vpn sectionFlorian Eckert
Move the VPN configuration section behind the network configuration. The normal workflow is add/edit the network and then add/edit a vpn configuration. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-06-02luci-base: grant uci rename permissionsJo-Philipp Wich
When doing an initial wireless configuration migration, LuCI needs to perform a series of rename calls which weren't allowed so far. Ref: https://forum.openwrt.org/t/config-migration-endless-loop/64340 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-06-01luci-base: add queryable WEP WiFi featureDavid Bauer
This commit adds WEP as a queryable WiFi feature. Support for the deprecated WEP encryption is not compiled-in to hostapd or wpa_supplicant by default anymore. Allow LuCi to query the availability of WEP to remove it from the list of avialable encryption methods in case hostapd / wpa_supplicant are compiled without it. Signed-off-by: David Bauer <mail@david-bauer.net>