Right now, the checkUfpInstalled RPC call is performed first, and only after
that can the other Promises be called. Simplify this by adding a single check
for /usr/sbin/ufpd in the rpcd ucode, and replace calls to checkUfpInstalled()
with simple L.hasSystemFeature('ufpd') check (which is only done once, and
cached).
This also allows the 'stat' permission to be removed from a couple of acls.
Signed-off-by: David Härdeman <david@hardeman.nu>
Refactor functions and variables to ES6 standard.
Detect whether one of the JSON enabled ip variants is installed, and
prefer it to display route information over the text handling. This is
handled by the acls and menu depends.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
In the overview page are all active dhcp leases displayed.
For easier recognition, the listed MAC addresses fo these leases are
resolved to their vendor names.
Signed-off-by: Christian Korber <ck@dev.tdt.de>
For easier definition of connected devices, this commit adds support
to identify them by vendor name.
Package `upf-neigh` is needed to lookup the vendor name in a hash table.
It implements a ubus-call `ubus call fingerprint fingerprint`:
```
root@<redacted> ~ # ubus call fingerprint fingerprint
{
"7c:c2:55:XX:XX:XX": {
"vendor": "Super Micro Computer, Inc."
}
}
```
Fixes: #2065
Depends on: openwrt/packages#27257
Signed-off-by: Christian Korber <ck@dev.tdt.de>
Commit includes wrapper syslog in /usr/libexec. If a log file is configured, the output of this file is displayed. Otherwise the output of logread is displayed.
Signed-off-by: Christian Korber <ckorber@tdt.de>
Add missing ACL entry for storage index page.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
luci-mod-status: expand storage index page with mount points
Expand storage index page with mount points. For custom mounts point we
use the device name and we reference the mount point between ().
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
luci-mod-status: ensure each storage getMountPoints result is unique
Signed-off-by: Paul Donald <newtwen@gmail.com>
Closes#2767
Without this fix channel analysis will not work unless write access is
also granted to luci-mod-network-config
Signed-off-by: Erik Karlsson <erik.karlsson@genexis.eu>
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>
Do not expose the iptables status page as menu item when nftables is present
on the system. Instead add a warning banner to the nftables status page
directing the user to the hidden iptables status page when we encounter
legacy rules on the system.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
The ACL file luci-mod-status.json is already quite long.
It is also a separate menu item in LuCI, so in my view it makes sense to
move it to a separate file. An additional positive effect is that the
file then becomes clearer.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Merge "Kernel Log" with "System Log" as an extra tab.
Consolidate logging facilities for more intuitive navigation.
Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
Provide comprehensive status information for routing.
Rename the "Status > Routes" page to "Status > Routing".
Unify sorting for the "Status" and "Network" menus.
Add tabs for IPv4 and IPv6 and reorganize the contents.
Display routing rules and their priorities for each protocol.
Policy-based routing is an increasingly popular problem.
Netifd natively supports policy-based routing:
* The interface-specific options "ip4table" and "ip6table".
* The routing rules using the "rule" and "rule6" sections.
LuCI is missing the information about routing rules.
Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
Add channel analysis support. This can be very useful as a user can directly use the webui to check wifi channel utilization without using external tool. This use data already provided by iwinfo.
Fixes: #4572
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>