From: Jo-Philipp Wich Date: Sun, 2 Feb 2014 20:04:04 +0000 (+0000) Subject: luci2: add menu constraints X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci2%2Fui.git;a=commitdiff_plain;h=1df7615f47e54f5070fe64169dc1f7315a73711e luci2: add menu constraints --- 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 }