⛄ Sync 2026-04-23 20:32:35

This commit is contained in:
github-actions[bot] committed 2026-04-23 20:32:35 +08:00
1 parent 17738c6f79
commit fe51d2b304
206 files changed
+725671

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
. /lib/functions.sh
main() {
local log_file
log_file="$(uci_get system @system[0] log_file "")"
if [ -f "$log_file" ]; then
cat "$log_file"
return
fi
if [ -f /sbin/logread ]; then
/sbin/logread -e ^
else
/usr/sbin/logread -e ^
fi
}
main
@@ -0,0 +1,188 @@
{
"admin/status/overview": {
"title": "Overview",
"order": 1,
"action": {
"type": "template",
"path": "admin_status/index"
},
"depends": {
"acl": [ "luci-mod-status-index" ]
}
},
"admin/status/routes": {
"title": "Routing",
"order": 2,
"action": {
"type": "view",
"path": "status/routes"
},
"depends": {
"acl": [ "luci-mod-status-routes" ],
"fs": [
{ "/usr/libexec/ip-tiny": "absent", "/usr/libexec/ip-full": "absent" }
]
}
},
"admin/status/routesj": {
"title": "Routing",
"order": 2,
"action": {
"type": "view",
"path": "status/routesj"
},
"depends": {
"acl": [ "luci-mod-status-routes-json" ],
"fs": [
{ "/usr/libexec/ip-tiny": "executable" },
{ "/usr/libexec/ip-full": "executable" }
]
}
},
"admin/status/iptables": {
"title": "Firewall",
"order": 3,
"action": {
"type": "view",
"path": "status/iptables"
},
"depends": {
"acl": [ "luci-mod-status-firewall" ],
"fs": [
{ "/usr/sbin/nft": "absent", "/usr/sbin/iptables": "executable" },
{ "/usr/sbin/nft": "absent", "/usr/sbin/ip6tables": "executable" }
]
}
},
"admin/status/nftables": {
"title": "Firewall",
"order": 3,
"action": {
"type": "view",
"path": "status/nftables"
},
"depends": {
"acl": [ "luci-mod-status-firewall" ],
"fs": { "/usr/sbin/nft": "executable" }
}
},
"admin/status/nftables/iptables": {
"action": {
"type": "view",
"path": "status/iptables"
}
},
"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": true } }
}
},
"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": "Bandwidth",
"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"
}
}
}
@@ -0,0 +1,77 @@
{
"luci-mod-status-index": {
"description": "Grant access to main status display",
"read": {
"file": {
"/etc/board.json": [ "read" ],
"/proc/sys/net/netfilter/nf_conntrack_count": [ "read" ],
"/proc/sys/net/netfilter/nf_conntrack_max": [ "read" ],
"/www/luci-static/resources/view/status/include": [ "list" ]
},
"ubus": {
"luci": [ "getVersion", "getUnixtime", "getOdhcp6cStats", "getBuiltinEthernetPorts", "getCPUBench", "getCPUInfo", "getCPUUsage" ],
"file": [ "list", "read" ],
"system": [ "board", "info" ]
}
},
"write": {
"uci": [ "dhcp" ]
}
},
"luci-mod-status-index-storage": {
"description": "Grant access to Storage and Mount status display",
"read": {
"ubus": {
"luci": [ "getMountPoints" ],
"system": [ "info" ]
}
}
},
"luci-mod-status-index-dhcp": {
"description": "Grant access to DHCP status display",
"read": {
"ubus": {
"luci-rpc": [ "getDHCPLeases" ],
"fingerprint": [ "fingerprint" ]
}
}
},
"luci-mod-status-index-dsl": {
"description": "Grant access to DSL status display",
"read": {
"ubus": {
"dsl": [ "metrics" ]
}
}
},
"luci-mod-status-index-ports": {
"description": "Grant access to port status display",
"read": {
"ubus": {
"luci": [ "getBuiltinEthernetPorts", "getSwconfigPortState" ]
}
}
},
"luci-mod-status-index-wifi": {
"description": "Grant access to wireless status display",
"read": {
"file": {
"/usr/sbin/wlanconfig": [ "exec" ]
},
"ubus": {
"file": [ "exec" ],
"iwinfo": [ "assoclist", "devices", "info" ]
}
},
"write": {
"ubus": {
"hostapd.*": [ "del_client", "wps_start", "wps_cancel", "wps_status" ]
}
}
}
}
@@ -0,0 +1,121 @@
{
"luci-mod-status-realtime": {
"description": "Grant access to realtime statistics",
"read": {
"file": {
"/etc/services": [ "read" ]
},
"ubus": {
"luci": [ "getConntrackList", "getRealtimeStats", "getCPUBench", "getCPUUsage", "getOnlineUsers" ],
"luci-rpc": [ "getHostHints", "getNetworkDevices", "getDHCPLeases" ],
"network.rrdns": [ "lookup" ]
}
}
},
"luci-mod-status-processes": {
"description": "Grant access to process status",
"read": {
"ubus": {
"luci": [ "getProcessList" ]
}
},
"write": {
"file": {
"/bin/kill": [ "exec" ]
},
"ubus": {
"file": [ "exec" ]
}
}
},
"luci-mod-status-logs": {
"description": "Grant access to system logs",
"read": {
"cgi-io": [ "exec" ],
"file": {
"/bin/dmesg -r": [ "exec" ],
"/usr/libexec/syslog-wrapper": [ "exec" ]
},
"ubus": {
"log": [ "read" ],
"file": [ "stat" ]
}
}
},
"luci-mod-status-routes": {
"description": "Grant access to routing status",
"read": {
"file": {
"/sbin/ip -[46] neigh show": [ "exec" ],
"/sbin/ip -[46] route show table all": [ "exec" ],
"/sbin/ip -[46] rule show": [ "exec" ]
},
"ubus": {
"file": [ "exec" ],
"fingerprint": [ "fingerprint" ]
}
}
},
"luci-mod-status-routes-json": {
"description": "Grant access to routing status",
"read": {
"file": {
"/sbin/ip -[46] -j neigh show": [ "exec" ],
"/sbin/ip -[46] -j route show table all": [ "exec" ],
"/sbin/ip -[46] -j rule show": [ "exec" ]
},
"ubus": {
"file": [ "exec" ],
"fingerprint": [ "fingerprint" ]
}
}
},
"luci-mod-status-channel_analysis": {
"description": "Grant access to wireless channel status",
"read": {
"file": {
"/usr/sbin/ip": [ "exec" ],
"/usr/sbin/iw": [ "exec" ]
},
"ubus": {
"file": [ "exec" ],
"iwinfo": [ "freqlist" ],
"luci-rpc": [ "getNetworkDevices" ]
}
}
},
"luci-mod-status-firewall": {
"description": "Grant access to firewall status",
"read": {
"cgi-io": [ "exec" ],
"file": {
"/usr/sbin/nft --terse --json list ruleset": [ "exec" ],
"/usr/sbin/iptables --line-numbers -w -nvxL -t *": [ "exec" ],
"/usr/sbin/ip6tables --line-numbers -w -nvxL -t *": [ "exec" ],
"/usr/sbin/ip6tables": [ "list" ],
"/usr/sbin/iptables-save": [ "exec" ],
"/usr/sbin/ip6tables-save": [ "exec" ]
},
"ubus": {
"file": [ "stat" ]
}
},
"write": {
"cgi-io": [ "exec" ],
"file": {
"/etc/init.d/firewall restart": [ "exec" ],
"/usr/sbin/iptables -Z": [ "exec" ],
"/usr/sbin/ip6tables -Z": [ "exec" ]
},
"ubus": {
"file": [ "exec" ]
}
}
}
}