rc.subr modification: testing and feedback are welcome! [here's the patch]

Pietro Cerutti pietro.cerutti at gmail.com
Wed Nov 15 11:27:33 PST 2006


Ouch... here's the patch ;-)

On 11/15/06, Pietro Cerutti <pietro.cerutti at gmail.com> wrote:
> On 11/15/06, Ingo <ingom-list at freenet.de> 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
>


-- 
Pietro Cerutti
ICQ: 117293691
PGP: 0x9571F78E

- ASCII Ribbon Campaign -
 against HTML e-mail and
 proprietary attachments
   www.asciiribbon.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rc.subr.diff
Type: application/octet-stream
Size: 1824 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20061115/bdae8f4c/rc.subr.obj


More information about the freebsd-stable mailing list