diff options
Diffstat (limited to 'applications/luci-app-uhttpd/root/usr')
-rw-r--r-- | applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json | 9 | ||||
-rw-r--r-- | applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json | 11 |
2 files changed, 13 insertions, 7 deletions
diff --git a/applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json b/applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json index db3be65088..03a97cb2e7 100644 --- a/applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json +++ b/applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json @@ -1,14 +1,13 @@ { - "admin/services/uhttpd/*": { + "admin/services/uhttpd": { "title": "uHTTPd", "action": { - "type": "cbi", - "path": "uhttpd/uhttpd", - "post": { "cbi.submit": true } + "type": "view", + "path": "uhttpd" }, "depends": { "acl": [ "luci-app-uhttpd" ], "uci": { "uhttpd": true } } } -} +}
\ No newline at end of file diff --git a/applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json b/applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json index d3b93523cc..ab946db77a 100644 --- a/applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json +++ b/applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json @@ -2,10 +2,17 @@ "luci-app-uhttpd": { "description": "Grant UCI access for luci-app-uhttpd", "read": { - "uci": [ "uhttpd" ] + "uci": [ "uhttpd" ], + "file": { + "/*": ["read"] + } }, "write": { - "uci": [ "uhttpd" ] + "uci": [ "uhttpd" ], + "file": { + "/*": ["write"], + "/etc/init.d/uhttpd restart": ["exec"] + } } } } |