The netifd calls in the dispatcher script in ModemManager:
Results in:
Fri Feb 23 15:22:10 2024 daemon.info [2677]: <info> [modem0] state changed (connected -> disabling)
Fri Feb 23 15:22:10 2024 daemon.info [2677]: <info> [modem0/bearer45] connection #1 finished: duration 10703s, tx: 56713324 bytes, rx: 3492167535 bytes
Fri Feb 23 15:22:10 2024 user.notice modemmanager: interface wan (network device wwan0) disconnected
Fri Feb 23 15:22:10 2024 daemon.notice netifd: Interface 'wan' has lost the connection
Fri Feb 23 15:22:10 2024 daemon.warn dnsmasq[1]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Fri Feb 23 15:22:10 2024 daemon.notice netifd: Network device 'wwan0' link is down
Fri Feb 23 15:22:10 2024 daemon.info [2677]: <info> [modem0] 3GPP registration state changed (home -> unknown)
Fri Feb 23 15:22:10 2024 daemon.info [2677]: <info> [modem0] state changed (disabling -> disabled)
Fri Feb 23 15:22:10 2024 daemon.notice netifd: wan (11819): stopping network
Fri Feb 23 15:22:11 2024 daemon.notice netifd: wan (11819): running disconnection (common)
Fri Feb 23 15:22:11 2024 daemon.notice netifd: wan (11819): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wan" } (Permission denied)
Fri Feb 23 15:22:11 2024 daemon.notice netifd: wan (11819): successfully disconnected all bearers in the modem
Fri Feb 23 15:22:11 2024 daemon.notice netifd: wan (11819): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wan" } (Permission denied)
Fri Feb 23 15:22:11 2024 daemon.notice netifd: Interface 'wan' is now down
What's with:
Fri Feb 23 15:22:11 2024 daemon.notice netifd: wan (11819): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wan" } (Permission denied)
Fri Feb 23 15:22:11 2024 daemon.notice netifd: wan (11819): successfully disconnected all bearers in the modem
Fri Feb 23 15:22:11 2024 daemon.notice netifd: wan (11819): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wan" } (Permission denied)