Commit 67984da
committed
luci-mod-status: add dynamic ethernet devices
Extend port status view to include dynamically detected
ethernet interfaces (e.g. USB adapters).
Devices are merged into the existing port list if not
already present. Loopback interfaces are excluded.
Filter against /sys/class/net to avoid stale entries
after device removal.
Tested on:
- GL.iNet GL-MT6000
- OpenWrt 25.12.1
- Apple USB ethernet adapters (100 Mbps and 2.5 Gbps)
Verified link state changes and hotplug (add/remove).
Signed-off-by: Karsten Hoehn <git@karstenhoehn.net>1 parent a6b7ad4 commit 67984da
1 file changed
Lines changed: 24 additions & 2 deletions
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
416 | 419 | | |
417 | 420 | | |
418 | 421 | | |
419 | 422 | | |
420 | 423 | | |
421 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
422 | 427 | | |
423 | 428 | | |
424 | 429 | | |
| |||
462 | 467 | | |
463 | 468 | | |
464 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
465 | 487 | | |
466 | 488 | | |
467 | 489 | | |
| |||
0 commit comments