summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-p910nd/root
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-p910nd/root')
-rwxr-xr-xapplications/luci-app-p910nd/root/etc/uci-defaults/40_luci-p910nd10
-rw-r--r--applications/luci-app-p910nd/root/usr/share/luci/menu.d/luci-app-p910nd.json5
-rw-r--r--applications/luci-app-p910nd/root/usr/share/rpcd/acl.d/luci-app-p910nd.json9
-rw-r--r--applications/luci-app-p910nd/root/usr/share/ucitrack/luci-app-p910nd.json4
4 files changed, 14 insertions, 14 deletions
diff --git a/applications/luci-app-p910nd/root/etc/uci-defaults/40_luci-p910nd b/applications/luci-app-p910nd/root/etc/uci-defaults/40_luci-p910nd
deleted file mode 100755
index d1b629fdee..0000000000
--- a/applications/luci-app-p910nd/root/etc/uci-defaults/40_luci-p910nd
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@p910nd[-1]
- add ucitrack p910nd
- set ucitrack.@p910nd[-1].init=p910nd
- commit ucitrack
-EOF
-
-exit 0
diff --git a/applications/luci-app-p910nd/root/usr/share/luci/menu.d/luci-app-p910nd.json b/applications/luci-app-p910nd/root/usr/share/luci/menu.d/luci-app-p910nd.json
index 4f3cb810c6..b67523168b 100644
--- a/applications/luci-app-p910nd/root/usr/share/luci/menu.d/luci-app-p910nd.json
+++ b/applications/luci-app-p910nd/root/usr/share/luci/menu.d/luci-app-p910nd.json
@@ -3,9 +3,8 @@
"title": "p910nd - Printer server",
"order": 60,
"action": {
- "type": "cbi",
- "path": "p910nd",
- "post": { "cbi.submit": true }
+ "type": "view",
+ "path": "p910nd"
},
"depends": {
"acl": [ "luci-app-p910nd" ],
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" ]
diff --git a/applications/luci-app-p910nd/root/usr/share/ucitrack/luci-app-p910nd.json b/applications/luci-app-p910nd/root/usr/share/ucitrack/luci-app-p910nd.json
new file mode 100644
index 0000000000..4cf7c53f7b
--- /dev/null
+++ b/applications/luci-app-p910nd/root/usr/share/ucitrack/luci-app-p910nd.json
@@ -0,0 +1,4 @@
+{
+ "config": "p910nd",
+ "init": "p910nd"
+}