This commit is contained in:
Daniel Heule
2025-12-19 14:46:46 +01:00
parent 850847ff27
commit e2162f771f

View File

@@ -78,10 +78,10 @@ fn bond_status(d: &Path) -> io::Result<Vec<BondingInfo>> {
let mut bl = Vec::new();
let bond_info = BondingInfo {
bond: d
.file_name()
.unwrap_or(OsStr::new("unknown"))
.to_string_lossy()
.to_string(),
.file_name()
.unwrap_or(OsStr::new("unknown"))
.to_string_lossy()
.to_string(),
master_state: fs::read_to_string(d.join("bonding/mii_status"))?.trim().to_string(),
slave: "".to_string(),
slave_state: "".to_string(),