mirror of
https://github.com/openwrt/luci.git
synced 2025-10-16 20:15:42 +00:00
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>