luci2: add menu constraints
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 2 Feb 2014 20:04:04 +0000 (20:04 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 2 Feb 2014 20:04:04 +0000 (20:04 +0000)
luci2/share/menu.d/network.json
luci2/share/menu.d/system.json

index d590046d568484a6525040e7dc703330494c0afd..25ffeee5bf7badbf074ea3e6a2e255a82ea67e11 100644 (file)
     "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
     },
index 16e117b78bebef659c4454f289c21a9688e6bf91..3a5d45aa9c1359e6fcb38046c3a5cda34b8a90d6 100644 (file)
@@ -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
     }