System doesn't detect unplugged network cable and doesn't set interface up properly with DHCP

Alexander Yerenkow yerenkow at gmail.com
Fri Jul 13 07:57:58 UTC 2012


>
> Add the following lines to /etc/devd.conf:
>
> notify 0 {
>         match "system"          "IFNET";
>         match "type"            "LINK_DOWN";
>         media-type              "ethernet";
>         action "/etc/rc.d/dhclient quietstop $subsystem; ifconfig
> $subsystem inet 0.0.0.0";
> };
>
> Then restart devd(8).
>

1. Is this rule will do nothing if interface wasn't configured as DHCP?
2. Can such primer be added (but commented) to  /etc/devd.conf in
CURRENT, so FreeBSD will be a bit more flexible for all kind of users?

-- 
Regards,
Alexander Yerenkow


More information about the freebsd-net mailing list