From 1df7615f47e54f5070fe64169dc1f7315a73711e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 2 Feb 2014 20:04:04 +0000 Subject: [PATCH] luci2: add menu constraints --- luci2/share/menu.d/network.json | 2 ++ luci2/share/menu.d/system.json | 2 ++ 2 files changed, 4 insertions(+) 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 } -- 2.30.2