mtwifi-cfg: remove channel analysis

This commit is contained in:
hanwckf 2023-12-02 14:59:43 +08:00
parent 3951b5a04a
commit a2b9a401f7
3 changed files with 153 additions and 3 deletions

View File

@ -43,9 +43,10 @@ define Package/mtwifi-cfg/install
endef
define Package/mtwifi-cfg-luci/install
$(INSTALL_DIR) $(1)/etc/uci-defaults/ $(1)/www/luci-static/resources/view/network/
$(INSTALL_DIR) $(1)/etc/uci-defaults/ $(1)/usr/share/mtwifi-cfg-luci
$(INSTALL_DATA) ./files/luci/wireless-mtk.js $(1)/www/luci-static/resources/view/network/wireless-mtk.js
$(INSTALL_DATA) ./files/luci/wireless-mtk.js $(1)/usr/share/mtwifi-cfg-luci
$(INSTALL_DATA) ./files/luci/luci-mod-status.json $(1)/usr/share/mtwifi-cfg-luci
$(INSTALL_DATA) ./files/luci/mtwifi-cfg-luci.default $(1)/etc/uci-defaults/20-mtwifi-cfg-luci.default
endef

View File

@ -0,0 +1,143 @@
{
"admin/status/overview": {
"title": "Overview",
"order": 1,
"action": {
"type": "template",
"path": "admin_status/index"
},
"depends": {
"acl": [ "luci-mod-status-index" ]
}
},
"admin/status/iptables": {
"title": "Firewall",
"order": 2,
"action": {
"type": "view",
"path": "status/iptables"
},
"depends": {
"acl": [ "luci-mod-status-firewall" ]
}
},
"admin/status/routes": {
"title": "Routes",
"order": 3,
"action": {
"type": "view",
"path": "status/routes"
},
"depends": {
"acl": [ "luci-mod-status-routes" ]
}
},
"admin/status/logs": {
"title": "System Log",
"order": 4,
"action": {
"type": "alias",
"path": "admin/status/logs/syslog"
},
"depends": {
"acl": [ "luci-mod-status-logs" ]
}
},
"admin/status/logs/syslog": {
"title": "System Log",
"order": 1,
"action": {
"type": "view",
"path": "status/syslog"
}
},
"admin/status/logs/dmesg": {
"title": "Kernel Log",
"order": 2,
"action": {
"type": "view",
"path": "status/dmesg"
}
},
"admin/status/processes": {
"title": "Processes",
"order": 6,
"action": {
"type": "view",
"path": "status/processes"
},
"depends": {
"acl": [ "luci-mod-status-processes" ]
}
},
"admin/status/channel_analysis": {
"title": "Channel Analysis",
"order": 7,
"action": {
"type": "view",
"path": "status/channel_analysis"
},
"depends": {
"acl": [ "luci-mod-status-channel_analysis" ],
"uci": { "wireless": { "@wifi-device": { "type": "mac80211" } } }
}
},
"admin/status/realtime": {
"title": "Realtime Graphs",
"order": 7,
"action": {
"type": "alias",
"path": "admin/status/realtime/load"
},
"depends": {
"acl": [ "luci-mod-status-realtime" ]
}
},
"admin/status/realtime/load": {
"title": "Load",
"order": 1,
"action": {
"type": "view",
"path": "status/load"
}
},
"admin/status/realtime/bandwidth": {
"title": "Traffic",
"order": 2,
"action": {
"type": "view",
"path": "status/bandwidth"
}
},
"admin/status/realtime/wireless": {
"title": "Wireless",
"order": 3,
"action": {
"type": "view",
"path": "status/wireless"
},
"depends": {
"uci": { "wireless": { "@wifi-device": true } }
}
},
"admin/status/realtime/connections": {
"title": "Connections",
"order": 4,
"action": {
"type": "view",
"path": "status/connections"
}
}
}

View File

@ -1,3 +1,9 @@
#!/bin/sh
mv /www/luci-static/resources/view/network/wireless-mtk.js /www/luci-static/resources/view/network/wireless.js
if [ -d /www/luci-static/resources/view/network ]; then
mv -f /usr/share/mtwifi-cfg-luci/wireless-mtk.js /www/luci-static/resources/view/network/wireless.js
fi
if [ -d /usr/share/luci/menu.d ]; then
mv -f /usr/share/mtwifi-cfg-luci/luci-mod-status.json /usr/share/luci/menu.d/luci-mod-status.json
fi