From owner-freebsd-stable@FreeBSD.ORG Wed Nov 15 19:26:50 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46C7E16A51C for ; Wed, 15 Nov 2006 19:26:50 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id E98FA43D9E for ; Wed, 15 Nov 2006 19:26:35 +0000 (GMT) (envelope-from pietro.cerutti@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so221932uge for ; Wed, 15 Nov 2006 11:26:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=U2oCgMZ4Fxo8NvvY+Ti6RQPQnH0YrS7tjnSKAcvFmUQ8wT2SnVbQOX2t42UX9znZVlrqT6h0gc5ds4GM3d2v5XxheUkzG8ydSrgvRoRlzgQg9Ru1hXIbUCxYc4XI4XDSAXZP1OuZwbxL86+QVi+YhalQlyt1sE0XFjxNgnoxGwc= Received: by 10.67.22.14 with SMTP id z14mr3520611ugi.1163618793824; Wed, 15 Nov 2006 11:26:33 -0800 (PST) Received: by 10.66.224.6 with HTTP; Wed, 15 Nov 2006 11:26:33 -0800 (PST) Message-ID: Date: Wed, 15 Nov 2006 20:26:33 +0100 From: "Pietro Cerutti" To: Ingo , "FreeBSD Questions" , freebsd-stable@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: Subject: Re: rc.subr modification: testing and feedback are welcome! X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2006 19:26:50 -0000 On 11/15/06, Ingo wrote: > > Hello, Hello, > There should be an tiemout so that the system boots even if I forget to > choose Yup, great idea. The new patch [attached] permits you to set: DAEMON_ask_timeout={0-9}[s|m|h] and DAEMON_ask_default=[yes|no] in rc.conf Default values have been put in rc.subr ("5s" and "yes") > > It should also be possible to use the short form [y/n] while booting in > addition to yes/no to start the deamon, This could be done, but at the moment I rely on the checkyesno subroutine in rc.subr, which only accepts [yes, true, on, 1] and [no, false, off, 0] in any combination of upper and lower case. > > greetings > Thanks for input, regards -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org