diff options
Diffstat (limited to 'modules/luci-mod-system/root')
-rw-r--r-- | modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json | 14 | ||||
-rw-r--r-- | modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json b/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json index 4022e0cebf..ebae989d0e 100644 --- a/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json +++ b/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json @@ -60,6 +60,20 @@ } }, + "admin/system/admin/uhttpd": { + "title": "HTTP(S) Access", + "order": 4, + "action": { + "type": "view", + "path": "system/uhttpd" + }, + "depends": { + "acl": [ "luci-mod-system-uhttpd" ], + "fs": { "/usr/sbin/uhttpd": "executable" } + } + }, + + "admin/system/startup": { "title": "Startup", "order": 45, diff --git a/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json b/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json index e04bcdb476..9acb6e4471 100644 --- a/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json +++ b/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json @@ -38,6 +38,20 @@ } }, + "luci-mod-system-uhttpd": { + "description": "Grant access to uHTTPd configuration", + "read": { + "uci": [ "uhttpd" ] + }, + "write": { + "ubus": { + "luci": [ "setInitAction" ] + }, + "uci": [ "uhttpd" ] + } + }, + + "luci-mod-system-init": { "description": "Grant access to startup configuration", "read": { |