Date: Tue, 8 Dec 2009 12:40:56 GMT From: "Viktor Štujber" <viktor.stujber@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/141275: dhclient rc script should print something if it fails Message-ID: <200912081240.nB8Ceusp044430@www.freebsd.org> Resent-Message-ID: <200912081250.nB8Co14F048293@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912081240.nB8Ceusp044430>