man dhclient.conf contains an error in script description > script "script-name"; > The script statement is used to specify the pathname of the > DHCP client configuration script. This script is used by the > DHCP client to set each interface's initial configuration prior > to requesting an address, to test the address once it has been > offered, and to set the interface's final configuration once a > lease has been acquired. If no lease is acquired, the script > is used to test predefined leases, if any, and also called once > if no valid lease can be identified. For more information, see > dhclient.leases(5). last sentence should be > For more information, see dhclient-script(8).
I think the intent is "For more information [on predefined leases], see..." and is appropriate in that context. I agree there should be a reference to dhclient-script(8) as well, though.
Created attachment 258980 [details] Patch incorporating both concerns A patch incorporating both concerns is attached. The rendered section reads: ... used to test predefined leases, if any, and also called once if no valid lease can be identified. For more information on predefined leases, see dhclient.leases(5). Additional information on using DHCP client configuration scripts is found in dhclient.script(8). ...
(In reply to Jim B. from comment #2) Entered in phabricator as https://reviews.freebsd.org/D49489
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=f4424a2733867ec5f12ecd196011ce8df096f522 commit f4424a2733867ec5f12ecd196011ce8df096f522 Author: Jim Brown <jpb@jimby.name> AuthorDate: 2026-06-05 14:59:32 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2026-06-05 15:13:32 +0000 dhclient.conf.5: Correct crossreference PR: 285614 Reviewed by: ziaee, michaelo, jrm MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D49489 sbin/dhclient/dhclient.conf.5 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=37517d6d91668611f15b95ba300d4934555cad44 commit 37517d6d91668611f15b95ba300d4934555cad44 Author: Jim Brown <jpb@jimby.name> AuthorDate: 2026-06-05 14:59:32 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2026-06-22 13:26:09 +0000 dhclient.conf.5: Correct crossreference PR: 285614 Reviewed by: ziaee, michaelo, jrm MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D49489 (cherry picked from commit f4424a2733867ec5f12ecd196011ce8df096f522) sbin/dhclient/dhclient.conf.5 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)