Regression: nm-dispatcher 1.12 does not emit connectivity-change events
Consider the following dispatcher script:
#!/bin/bash
# /etc/NetworkManager/dispatcher.d/10-portal.sh
iface=$1
action=$2
conn=$CONNECTIVITY_STATE
echo "Portal handler: iface: $iface, action: $action, conn: $conn" | \
systemd-cat -t nm-dispatcher -p info
For NetworkManager versions 1.10 and earlier, this emits a set of events like this
16:27:46 nm-dispatcher[356]: req:1 'hostname': new request (1 scripts)
16:27:46 nm-dispatcher[356]: req:1 'hostname': start running ordered scripts...
16:27:46 nm-dispatcher[409]: Portal handler: iface: none, action: hostname, conn:
16:28:02 nm-dispatcher[662]: req:1 'up' [wlp58s0]: new request (1 scripts)
16:28:02 nm-dispatcher[662]: req:1 'up' [wlp58s0]: start running ordered scripts...
16:28:02 nm-dispatcher[667]: Portal handler: iface: wlp58s0, action: up, conn:
16:28:02 nm-dispatcher[662]: req:2 'connectivity-change': new request (1 scripts)
16:28:02 nm-dispatcher[662]: req:2 'connectivity-change': start running ordered scripts...
16:28:02 nm-dispatcher[670]: Portal handler: iface: , action: connectivity-change, conn: FULL
Since NetworkManager >= 1.12, the connectivity-change
events are completely gone. Instead, I get only this:
16:09:36 nm-dispatcher[14376]: req:1 'up' [wlp58s0]: new request (1 scripts)
16:09:36 nm-dispatcher[14376]: req:1 'up' [wlp58s0]: start running ordered scripts...
16:09:36 nm-dispatcher[14381]: Portal handler: iface: wlp58s0, action: up, conn:
This is a problem for me, since I use these events to detect portals.