From 435492adcfdf41a286b1d65a8a5dc4128b4d8cd9 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 3 Jun 2015 18:02:21 +0200 Subject: [PATCH] devd: do not launch /etc/pccard_ether; related to #201 --- src/etc/devd/ifnet.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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"; +};