[Bug 256767] ifconfig(8) NOAUTO and rc.conf(5): untimely configuration (up) of a network interface when it should be down

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 Aug 2021 22:20:20 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256767

--- Comment #8 from Mason Loring Bliss <mason_at_blisses.org> ---
>From /etc/devd.conf:

#
# Try to start dhclient on Ethernet-like interfaces when the link comes
# up.  Only devices that are configured to support DHCP will actually
# run it.  No link down rule exists because dhclient automatically exits
# when the link goes down.
#
notify 0 {
        match "system"          "IFNET";
        match "type"            "LINK_UP";
        media-type              "ethernet";
        action "service dhclient quietstart $subsystem";
};

#
# Like Ethernet devices, but separate because 802.11 require spawning
# wlan(4) interface.
#
attach 0 {
        device-name "$wifi-driver-regex";
        action "/etc/pccard_ether $device-name startchildren";
};
detach 0 {
        device-name "$wifi-driver-regex";
        action "/etc/pccard_ether $device-name stopchildren";
};
notify 0 {
        match "system"          "IFNET";
        match "type"            "LINK_UP";
        media-type              "802.11";
        action "service dhclient quietstart $subsystem";
};

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Wed Aug 25 2021 - 22:20:20 UTC

Original text of this message