diff --git a/src/etc/devd/ifnet.conf b/src/etc/devd/ifnet.conf index 9c77c6bc9..ef56acaea 100644 --- a/src/etc/devd/ifnet.conf +++ b/src/etc/devd/ifnet.conf @@ -30,3 +30,22 @@ notify 101 { media-type "802.11"; action "/usr/local/opnsense/service/configd_ctl.py 'interface linkup stop $subsystem'"; }; + +# +# While there, disable the invoke of /etc/pccard_ether to avoid +# rc scripts from reconfiguring the system into an unknown state. +# + +notify 101 { + match "system" "IFNET"; + match "subsystem" "!usbus[0-9]+"; + match "type" "ATTACH"; +}; + +detach 101 { + media-type "802.11"; +}; + +attach 101 { + media-type "802.11"; +};