ifnet.conf 1.32 KB
Newer Older
1
#
Ad Schellevis's avatar
Ad Schellevis committed
2
# Override the system defaults of devd so that configd receives
3 4 5 6 7 8 9
# both LINK_UP and LINK_DOWN events on wired and wireless devices.
#

notify 101 {
        match "system"          "IFNET";
        match "type"            "LINK_UP";
        media-type              "ethernet";
10
	action "/usr/local/opnsense/service/configd_ctl.py interface linkup start $subsystem";
11 12 13 14 15 16
};

notify 101 {
        match "system"          "IFNET";
	match "type"            "LINK_DOWN";
	media-type              "ethernet";
17
	action "/usr/local/opnsense/service/configd_ctl.py interface linkup stop $subsystem";
18 19 20 21 22 23
};

notify 101 {
        match "system"          "IFNET";
        match "type"            "LINK_UP";
	media-type              "802.11";
24
	action "/usr/local/opnsense/service/configd_ctl.py interface linkup start $subsystem";
25 26 27 28 29 30
};

notify 101 {
        match "system"          "IFNET";
        match "type"            "LINK_DOWN";
	media-type              "802.11";
31
	action "/usr/local/opnsense/service/configd_ctl.py interface linkup stop $subsystem";
32
};
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51

#
# 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";
};