forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: ipq807x: add tl-er2260t dts for other device builds in 5.15 (coolsnowwolf#10846) autocore: fix sfp unplugged speed display qca-ssdk: refresh patches (coolsnowwolf#10845) bump qca-ssdk nss-dp and ssdk-shell, Add tplink-tl-er2260t basic support (coolsnowwolf#10777) kernel: bump to 5.10.166, 5.15.91, 6.1.9 (coolsnowwolf#10842) kernel: bump 6.1 to 6.1.9
- Loading branch information
Showing
72 changed files
with
1,850 additions
and
882 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-5.10 = .165 | ||
LINUX_KERNEL_HASH-5.10.165 = 971defc48f19ed0a2a7ffd4b48234619cac28895c985c6d747f5b707ba47af0d | ||
LINUX_VERSION-5.10 = .166 | ||
LINUX_KERNEL_HASH-5.10.166 = 0051a1780e5bda0efc68dafab7c728b8283d2b028fedb439418f478be7d3e1af |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-5.15 = .90 | ||
LINUX_KERNEL_HASH-5.15.90 = e6fd430022686753af7516fe7544f96aab379509dc5b7829017bdcd92b393b42 | ||
LINUX_VERSION-5.15 = .91 | ||
LINUX_KERNEL_HASH-5.15.91 = a63c2bb1beb15f1aea9c63cf80559f5b7ab58afd2da2fa5e7670c515ebe1fe80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-6.1 = .8 | ||
LINUX_KERNEL_HASH-6.1.8 = b60bb53ab8ba370a270454b11e93d41af29126fc72bd6ede517673e2e57b816d | ||
LINUX_VERSION-6.1 = .9 | ||
LINUX_KERNEL_HASH-6.1.9 = d60cf185693c386e7acd9f3eb3a94ae30ffbfee0a9447a20e83711e0bdf5922b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,40 @@ | ||
#!/bin/sh | ||
|
||
a=$(ls /sys/class/net/*/device/uevent | grep -v wlan | awk -F '/' '{print $5}') | ||
b=$(echo "$a" | wc -l) | ||
rm -f /tmp/state/ethinfo | ||
|
||
echo -n "[" > /tmp/state/ethinfo | ||
|
||
for i in $(seq 1 $b) | ||
do | ||
h=$(echo '{"name":' ) | ||
c=$(echo "$a" | sed -n ${i}p) | ||
d=$(ethtool $c) | ||
|
||
e=$(echo "$d" | grep "Link detected" | awk -F: '{printf $2}' | sed 's/^[ \t]*//g') | ||
if [ $e = yes ]; then | ||
l=1 | ||
else | ||
l=0 | ||
fi | ||
|
||
f=$(echo "$d" | grep "Speed" | awk -F: '{printf $2}' | sed 's/^[ \t]*//g' | tr -d "Unknown!") | ||
[ -z "$f" ] && f=" - " | ||
|
||
g=$(echo "$d" | grep "Duplex" | awk -F: '{printf $2}' | sed 's/^[ \t]*//g') | ||
if [ "$g" == "Full" ]; then | ||
x=1 | ||
else | ||
x=0 | ||
fi | ||
|
||
echo -n "$h \"$c\", \"status\": $l, \"speed\": \"$f\", \"duplex\": $x}," >> /tmp/state/ethinfo | ||
done | ||
|
||
sed -i 's/.$//' /tmp/state/ethinfo | ||
|
||
echo -n "]" >> /tmp/state/ethinfo | ||
|
||
cat /tmp/state/ethinfo | ||
#!/usr/bin/lua | ||
-- Copyright (C) 2022-2023 Tianling Shen <cnsztl@immortalwrt.org> | ||
-- Copyright (C) 2022-2023 Lean | ||
|
||
local util = require "luci.util" | ||
local jsonc = require "luci.jsonc" | ||
|
||
local eth_info = {} | ||
local ifname, stat | ||
for ifname, stat in pairs(util.ubus("network.device", "status")) do | ||
if ifname:match("^(eth%d+)$") == ifname then | ||
local status, speed, duplex | ||
|
||
status = stat.carrier and 1 or 0 | ||
|
||
if not stat.carrier or not stat.speed or stat.speed:sub(1, 1) == "-" or stat.speed:find("65535") then | ||
speed = " - " | ||
else | ||
speed = stat.speed:sub(1, -2) .. "Mb/s" | ||
end | ||
|
||
if speed == " - " then | ||
duplex = 0 | ||
elseif stat.speed:sub(-1) == "F" then | ||
duplex = 1 | ||
else | ||
duplex = 0 | ||
end | ||
|
||
eth_info[#eth_info+1] = { name = ifname, status = status, | ||
speed = speed, duplex = duplex } | ||
end | ||
end | ||
|
||
table.sort(eth_info, | ||
function(a, b) | ||
return a.name < b.name | ||
end) | ||
|
||
print(jsonc.stringify(eth_info)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.