`ifupdown-extra` contains scripts to fix this.
Just link `/etc/network/if-up.d/00check-network-cable` to `/etc/network/if-pre-up.d/00check-network-cable` and be good to go.
If your system has _predictable_ network names you might need to apply [this](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970359) patch first.
+
+## Eduroam (2022-10-18)
+Publicroam offers eduroam-like wifi but does not provide very good linux installation instructions.
+After some trial and error, this worked for me:
+
+```
+network={
+ ssid="publicroam"
+ scan_ssid=1
+ key_mgmt=WPA-EAP
+ eap=PEAP
+ identity="USERNAME"
+ password="PASSWORD"
+ phase1="peaplabel=0"
+ phase2="auth=MSCHAPV2"
+}
+```