Révision f3347821
network.tc*: add the ability to detect systemd based network device names
| plugins/network/tc_ | ||
|---|---|---|
| 61 | 61 |
suggest) |
| 62 | 62 |
if [ -r /proc/net/dev ]; then |
| 63 | 63 |
awk ' |
| 64 |
/^ *(eth|tap|bond|wlan|ath|ra|sw)[0-9]+:/ {
|
|
| 64 |
/^ *(eth|tap|bond|wlan|ath|ra|sw|eno|ens|enp|wlp|wl)[0-9]*/ {
|
|
| 65 | 65 |
split($0, a, /: */); |
| 66 | 66 |
gsub(/^ +/,"",a[1]); |
| 67 | 67 |
if (($2 > 0) || ($10 > 0)) print a[1]; }' /proc/net/dev |
Formats disponibles : Unified diff