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 d590046..25ffeee 100644 (file)
     "network/switch": {
         "title": "Switch",
         "acls": [ "network" ],
     "network/switch": {
         "title": "Switch",
         "acls": [ "network" ],
+        "files": [ "/sbin/swconfig" ],
         "view": "network/switch",
         "index": 30
     },
     "network/hosts": {
         "title": "Hostnames",
         "acls": [ "hostnames" ],
         "view": "network/switch",
         "index": 30
     },
     "network/hosts": {
         "title": "Hostnames",
         "acls": [ "hostnames" ],
+        "files": [ "/etc/config/dhcp" ],
         "view": "network/hosts",
         "index": 50
     },
         "view": "network/hosts",
         "index": 50
     },
index 16e117b..3a5d45a 100644 (file)
@@ -24,6 +24,7 @@
     "system/software": {
         "title": "Software",
         "acls": [ "software" ],
     "system/software": {
         "title": "Software",
         "acls": [ "software" ],
+        "files": [ "/bin/opkg" ],
         "view": "system/software",
         "index": 40
     },
         "view": "system/software",
         "index": 40
     },
@@ -48,6 +49,7 @@
     "system/leds": {
         "title": "LED Configuration",
         "acls": [ "leds" ],
     "system/leds": {
         "title": "LED Configuration",
         "acls": [ "leds" ],
+        "files": [ "/etc/init.d/led" ],
         "view": "system/leds",
         "index": 80
     }
         "view": "system/leds",
         "index": 80
     }