#634 fixed wired inactive disconnected logging as unassigned modem

This commit is contained in:
Mikayla Fischler
2025-11-08 19:13:49 -05:00
parent 32af935e9e
commit 6e26ca4fac
3 changed files with 12 additions and 0 deletions

View File

@@ -294,6 +294,10 @@ function backplane.attach(type, device, iface)
-- the wireless NIC already has a modem
log_sys("standby wireless modem connected")
log.info("BKPLN: standby wireless modem connected")
elseif wd_nic and wd_nic.is_modem(device) then
-- wired, but not active
log_sys("standby wired modem disconnected")
log.info("BKPLN: standby wired modem disconnected")
else
log_sys("unassigned modem connected")
log.warning("BKPLN: unassigned modem connected")

View File

@@ -306,6 +306,10 @@ function backplane.detach(iface, type, device, print_no_fp)
-- wireless, but not active
print_no_fp("standby wireless modem disconnected")
log.info("BKPLN: standby wireless modem disconnected")
elseif wd_nic and wd_nic.is_modem(device) then
-- wired, but not active
print_no_fp("standby wired modem disconnected")
log.info("BKPLN: standby wired modem disconnected")
else
print_no_fp("unassigned modem disconnected")
log.warning("BKPLN: unassigned modem disconnected")

View File

@@ -243,6 +243,10 @@ function backplane.detach(type, device, iface, print_no_fp)
-- wireless, but not active
print_no_fp("standby wireless modem disconnected")
log.info("BKPLN: standby wireless modem disconnected")
elseif wd_nic and wd_nic.is_modem(device) then
-- wired, but not active
print_no_fp("standby wired modem disconnected")
log.info("BKPLN: standby wired modem disconnected")
else
print_no_fp("unassigned modem disconnected")
log.warning("BKPLN: unassigned modem disconnected")