op-packages/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json
2026-04-23 20:32:35 +08:00

104 lines
1.8 KiB
JSON

{
"admin/network/switch": {
"title": "Switch",
"order": 20,
"action": {
"type": "view",
"path": "network/switch"
},
"depends": {
"acl": [ "luci-mod-network-config" ],
"fs": { "/sbin/swconfig": "executable" },
"uci": { "network": { "@switch": true } }
}
},
"admin/network/wireless": {
"title": "Wireless",
"order": 15,
"action": {
"type": "view",
"path": "network/wireless"
},
"depends": {
"acl": [ "luci-mod-network-config" ],
"uci": { "wireless": { "@wifi-device": true } }
}
},
"admin/network/remote_addr/*": {
"action": {
"type": "call",
"module": "luci.controller.admin.network",
"function": "remote_addr"
}
},
"admin/network/network": {
"title": "Interfaces",
"order": 10,
"action": {
"type": "view",
"path": "network/interfaces"
},
"depends": {
"acl": [ "luci-mod-network-config" ]
}
},
"admin/network/routes": {
"title": "Routing",
"order": 30,
"action": {
"type": "view",
"path": "network/routes"
},
"depends": {
"acl": [ "luci-mod-network-config" ]
}
},
"admin/network/dhcp": {
"title": "DHCP",
"order": 40,
"action": {
"type": "view",
"path": "network/dhcp"
},
"depends": {
"acl": [ "luci-mod-network-dhcp" ],
"fs": [
{ "/usr/sbin/odhcpd": "executable" },
{ "/usr/sbin/dnsmasq": "executable" }
],
"uci": { "dhcp": true }
}
},
"admin/network/dns": {
"title": "DNS",
"order": 45,
"action": {
"type": "view",
"path": "network/dns"
},
"depends": {
"acl": [ "luci-mod-network-dns" ],
"fs": { "/usr/sbin/dnsmasq": "executable" },
"uci": { "dhcp": true }
}
},
"admin/network/diagnostics": {
"title": "Diagnostics",
"order": 50,
"action": {
"type": "view",
"path": "network/diagnostics"
},
"depends": {
"acl": [ "luci-mod-network-diagnostics" ]
}
}
}