Bug 91993 - dhclient(8) option missing, script incompability
Summary: dhclient(8) option missing, script incompability
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-19 10:00 UTC by Peter
Modified: 2017-12-31 22:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2006-01-19 10:00:15 UTC
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.

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..
Comment 1 Brooks Davis freebsd_committer freebsd_triage 2006-05-13 04:58:19 UTC
Responsible Changed
From-To: freebsd-bugs->sam

This is mostly a request for dhclient -r which sam has a patch for (it 
has not been commited due panics).
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2013-02-24 22:58:48 UTC
Responsible Changed
From-To: sam->freebsd-bugs

Sam has not been active in some time.
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:23 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped