Commit d7210fd
committed
agents: fix lnx_bonding when no bonding interface is configured
When /proc/net/bonding exists but no bonding interface is configured,
head fails with:
head: *: No such file or directory
Fix this by checking if any interfaces exist before running head
Signed-off-by: Oliver Sedlbauer <os@dev.tdt.de>1 parent 1351908 commit d7210fd
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
857 | 857 | | |
858 | 858 | | |
859 | 859 | | |
860 | | - | |
| 860 | + | |
861 | 861 | | |
862 | 862 | | |
863 | 863 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
| 584 | + | |
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| |||
0 commit comments