feat(routers): integrate Banana Pi Client API and onboard LibreSpeed measurements
Discover Ethernet routers under the board, map physical SIM slots, expose vendor controls and real telemetry, and provide packaged VPS speed tests with a live monochrome gauge. Enforce compact typography across Core and Node UI.
This commit is contained in:
@@ -31,7 +31,16 @@ func physical(name string) bool {
|
||||
return false
|
||||
}
|
||||
_, err := os.Stat(filepath.Join("/sys/class/net", name, "device"))
|
||||
return err == nil
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
// These routers attach to Node by Ethernet. Wireless/default uplinks are
|
||||
// not router discovery targets, even though they also have physical devices.
|
||||
if _, err := os.Stat(filepath.Join("/sys/class/net", name, "wireless")); err == nil {
|
||||
return false
|
||||
}
|
||||
carrier, err := os.ReadFile(filepath.Join("/sys/class/net", name, "carrier"))
|
||||
return err == nil && strings.TrimSpace(string(carrier)) == "1"
|
||||
}
|
||||
|
||||
func onLink(iface, address string) (string, bool) {
|
||||
|
||||
Reference in New Issue
Block a user