diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-02-02 20:04:04 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-02-02 20:04:04 +0000 |
commit | 1df7615f47e54f5070fe64169dc1f7315a73711e (patch) | |
tree | 31dd3ffb97beb17d7e663aae815dbbf3b1dee5a3 | |
parent | 0e1f9de53c732a60917ccb490eafbdf42dd1b2b2 (diff) | |
download | luci2-ui-1df7615f47e54f5070fe64169dc1f7315a73711e.tar.gz |
luci2: add menu constraints
-rw-r--r-- | luci2/share/menu.d/network.json | 2 | ||||
-rw-r--r-- | luci2/share/menu.d/system.json | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/luci2/share/menu.d/network.json b/luci2/share/menu.d/network.json index d590046..25ffeee 100644 --- a/luci2/share/menu.d/network.json +++ b/luci2/share/menu.d/network.json @@ -12,12 +12,14 @@ "network/switch": { "title": "Switch", "acls": [ "network" ], + "files": [ "/sbin/swconfig" ], "view": "network/switch", "index": 30 }, "network/hosts": { "title": "Hostnames", "acls": [ "hostnames" ], + "files": [ "/etc/config/dhcp" ], "view": "network/hosts", "index": 50 }, diff --git a/luci2/share/menu.d/system.json b/luci2/share/menu.d/system.json index 16e117b..3a5d45a 100644 --- a/luci2/share/menu.d/system.json +++ b/luci2/share/menu.d/system.json @@ -24,6 +24,7 @@ "system/software": { "title": "Software", "acls": [ "software" ], + "files": [ "/bin/opkg" ], "view": "system/software", "index": 40 }, @@ -48,6 +49,7 @@ "system/leds": { "title": "LED Configuration", "acls": [ "leds" ], + "files": [ "/etc/init.d/led" ], "view": "system/leds", "index": 80 } |