bin/91993: dhclient option missing, script incompability
Peter
pb at ludd.luth.se
Thu Jan 19 02:00:16 PST 2006
>Number: 91993
>Category: bin
>Synopsis: dhclient option missing, script incompability
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 19 10:00:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Peter
>Release: FreeBSD 6.0/i386
>Organization:
>Environment:
FreeBSD gw 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root at x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386
>Description:
In FreeBSD 5.4/i386 (and older) dhclient have an option '-r' which is now missing.
No equalient is found.
>From 5.4 dhclient manpage:
The -r flag explicitly releases the current lease, and once the lease
has been released, the client exits.
Also the script functionality in '/etc/dhclient-enter-hooks' is incompatible due
that old resolver config update function used the name make_resolv_conf(), while
the new one use add_new_resolv_conf(). End result being that old replacement
hooks won't work. I use a predefined resolver config.
>How-To-Repeat:
>Fix:
kill -9 <pid..> will partially do the same as the option '-r'.
Below /etc/dhclient-enter-hooks will workaround incompability bugs with resolver:
make_resolv_conf() {
/bin/cp -pf /config/resolv.conf.luth /etc/resolv.conf
}
add_new_resolv_conf() {
make_resolv_conf
}
Provided that admin is aware of it..
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list