Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2012 10:57:57 +0300
From:      Alexander Yerenkow <yerenkow@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   Re: System doesn't detect unplugged network cable and doesn't set interface up properly with DHCP
Message-ID:  <CAPJF9wkjfSVCZQOmrSeXCPyK0R2MKTrbNvJOJKPvn7NLWsB7Cw@mail.gmail.com>
In-Reply-To: <1342143769.2250.3.camel@nsl>
References:  <4FFF3683.7020107@rawbw.com> <1342143769.2250.3.camel@nsl>

next in thread | previous in thread | raw e-mail | index | archive | help
>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPJF9wkjfSVCZQOmrSeXCPyK0R2MKTrbNvJOJKPvn7NLWsB7Cw>