diff options
author | Paul Donald <newtwen@gmail.com> | 2024-02-12 16:07:58 +0100 |
---|---|---|
committer | Paul Donald <newtwen@gmail.com> | 2024-03-11 16:10:46 +0100 |
commit | 7053272b559e17415966e5b8e935b2630dee688b (patch) | |
tree | d5b5f3e1bd76c954737cb3456bb571951bc6cb2f /applications/luci-app-p910nd/root/usr/share/rpcd | |
parent | 78d0c7e9033d43bf2678c4ff2f0e48bb908f333e (diff) |
luci-app-p910nd: convert to JS
Simple p910nd printer management, and some level of automation that
detects whether the typically necessary kmods are installed, and if not
provides quick links to install those.
Tested on: 22.03.6, 23.05.2
Signed-off-by: Paul Donald <newtwen@gmail.com>
Diffstat (limited to 'applications/luci-app-p910nd/root/usr/share/rpcd')
-rw-r--r-- | applications/luci-app-p910nd/root/usr/share/rpcd/acl.d/luci-app-p910nd.json | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/applications/luci-app-p910nd/root/usr/share/rpcd/acl.d/luci-app-p910nd.json b/applications/luci-app-p910nd/root/usr/share/rpcd/acl.d/luci-app-p910nd.json index b2e7476e61..7111081bb9 100644 --- a/applications/luci-app-p910nd/root/usr/share/rpcd/acl.d/luci-app-p910nd.json +++ b/applications/luci-app-p910nd/root/usr/share/rpcd/acl.d/luci-app-p910nd.json @@ -2,7 +2,14 @@ "luci-app-p910nd": { "description": "Grant UCI access for luci-app-p910nd", "read": { - "uci": [ "p910nd" ] + "uci": [ "p910nd" ], + "file": { + "/usr/bin/find -L /dev -maxdepth 3 -type c -name lp*": ["exec"], + "/usr/libexec/opkg-call list-installed": ["exec"] + }, + "ubus": { + "luci": [ "p910nd" ] + } }, "write": { "uci": [ "p910nd" ] |