misc/141275: dhclient rc script should print something if it fails

Viktor Štujber viktor.stujber at gmail.com
Tue Dec 8 12:50:02 UTC 2009


>Number:         141275
>Category:       misc
>Synopsis:       dhclient rc script should print something if it fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 08 12:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Viktor Štujber
>Release:        8.0-STABLE
>Organization:
>Environment:
FreeBSD poring.netvor.sk 8.0-STABLE FreeBSD 8.0-STABLE #1: Fri Nov 27 15:12:20 CET 2009     umage at poring.netvor.sk:/usr/obj/usr/src/sys/PORING  i386

>Description:
The /etc/rc.d/dhclient script requires an 'interface' parameter to work, and the specified interface needs to be dhcp-enabled to make it actually run the dhclient binary.

In the event that the rc script is called without additional parameters, the script should test for that (it doesn't right now) and print meaningful instructions before exiting. Also, I miss the start|stop|restart instruction message.

Furthermore, the script invokes the external 'dhcpif' subroutine on the specified interface. If it fails, it should, again, display meaningful information about the problem before exiting.

Finally, perhaps a message could be echoed on success, before/after invoking run_rc_command.
>How-To-Repeat:
Type /etc/rc.d/dhclient
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list