luci2: add menu constraints
[project/luci2/ui.git] / luci2 / share / menu.d / network.json
index d590046..25ffeee 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
     },