ifnet.conf 1.02 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";
Ad Schellevis's avatar
Ad Schellevis committed
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";
Ad Schellevis's avatar
Ad Schellevis committed
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";
Ad Schellevis's avatar
Ad Schellevis committed
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";
Ad Schellevis's avatar
Ad Schellevis committed
31
	action "/usr/local/opnsense/service/configd_ctl.py 'interface linkup stop $subsystem'";
32
};