From owner-freebsd-rc@FreeBSD.ORG Wed Nov 15 19:32:15 2006 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AA2C16A57E for ; Wed, 15 Nov 2006 19:32:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F25EE43D5E for ; Wed, 15 Nov 2006 19:30:39 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kAFJUBBv033937 for ; Wed, 15 Nov 2006 19:30:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAFJUBZl033932; Wed, 15 Nov 2006 19:30:11 GMT (envelope-from gnats) Date: Wed, 15 Nov 2006 19:30:11 GMT Message-Id: <200611151930.kAFJUBZl033932@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: "Pietro Cerutti" Cc: Subject: Re: conf/105568: [patch] Add more flexibility to rc.conf, to choose "_enable" values at startup X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pietro Cerutti List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2006 19:32:15 -0000 The following reply was made to PR conf/105568; it has been noted by GNATS. From: "Pietro Cerutti" To: bug-followup@FreeBSD.org, pietro.cerutti@gmail.com Cc: Subject: Re: conf/105568: [patch] Add more flexibility to rc.conf, to choose "_enable" values at startup Date: Wed, 15 Nov 2006 20:21:29 +0100 ------=_Part_83855_8042419.1163618489179 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline This new patch allows to: - specify a default response set DAEMON_ask_default="[yes|no]" in rc.conf - specify a timeout after which the default response will be taken as good set DAEMON_ask_timeout="{0-9}[s|m|h]" in rc.conf Default values have been set in rc.subr ASK_TIMEOUT="5s" ASK_DEFAULT="YES" -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ------=_Part_83855_8042419.1163618489179 Content-Type: application/octet-stream; name=rc.subr.diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_euk4dzcf Content-Disposition: attachment; filename="rc.subr.diff" LS0tIC9ldGMvcmMuc3Vici5vcmlnCVdlZCBOb3YgMTUgMTQ6MDM6NTkgMjAwNgorKysgL2V0Yy9y Yy5zdWJyCVdlZCBOb3YgMTUgMjA6MTA6MzIgMjAwNgpAQCAtNTYsNiArNTYsOCBAQAogSUQ9Ii91 c3IvYmluL2lkIgogSklEPWBwcyAtcCAkJCAtbyBqaWQ9YAogSURDTUQ9ImlmIFsgLXggJElEIF07 IHRoZW4gJElEIC11bjsgZmkiCitBU0tfVElNRU9VVD0iNXMiCitBU0tfREVGQVVMVD0iWUVTIgog CiBjYXNlICR7T1NUWVBFfSBpbgogRnJlZUJTRCkKQEAgLTEyMiw3ICsxMjQsOCBAQAogCiAjCiAj IGNoZWNreWVzbm8gdmFyCi0jCVRlc3QgJDEgdmFyaWFibGUsIGFuZCB3YXJuIGlmIG5vdCBzZXQg dG8gWUVTIG9yIE5PLgorIwlUZXN0ICQxIHZhcmlhYmxlLCBhbmQgd2FybiBpZiBub3Qgc2V0IHRv IFlFUywgTk8gb3IgQVNLLgorIwlJZiBpdCdzICJhc2siLCBsZXQgdGhlIHVzZXIgY2hvb3NlIGF0 IHJ1bnRpbWUgYmV0d2VlbiAieWVzIiBhbmQgIm5vIi4KICMJUmV0dXJuIDAgaWYgaXQncyAieWVz IiAoZXQgYWwpLCBub256ZXJvIG90aGVyd2lzZS4KICMKIGNoZWNreWVzbm8oKQpAQCAtMTQwLDcg KzE0Myw1MiBAQAogCVtObl1bT29dfFtGZl1bQWFdW0xsXVtTc11bRWVdfFtPb11bRmZdW0ZmXXww KQogCQlyZXR1cm4gMQogCQk7OwotCSopCisKKyAgICAgICMgImFzayIKKwlbQWFdW1NzXVtLa10p CisgICAgICAKKyAgICAgICMgYW5zd2VyIGFscmVhZHkgc3RvcmVkIGluIC5hc2sgZmlsZSwKKyAg ICAgICMgdGhpcyBzaG91bGQgYmUgdGhlIGNhc2Ugb24gc2h1dGRvd24KKyAgICAgIF9maWxlPSIv dmFyL3J1bi8kbmFtZS5hc2siCisgICAgICBpZiBbIC1mICRfZmlsZSBdOyB0aGVuCisgICAgICAg ICByZWFkIF9yZXNwb25zZSA8ICRfZmlsZQorICAgICAgICAgaWYgY2hlY2t5ZXNubyBfcmVzcG9u c2U7IHRoZW4KKyAgICAgICAgICAgIHJldHVybiAwCisgICAgICAgICBlbHNlCisgICAgICAgICAg ICByZXR1cm4gMQorICAgICAgICAgZmkKKyAgICAgIGZpCisgICAgICAjIHByb21wdCBhbmQgc2F2 ZSBjaG9pY2UgdG8gZmlsZSwKKyAgICAgICMgdGhpcyBzaG91bGQgYmUgdGhlIGNhc2Ugb24gc3Rh cnR1cAorCisgICAgICAjIFJlYWQgdGltZW91dCBhbmQgZGVmYXVsdCBhbnN3ZXIgZm9yIGRhZW1v bgorICAgICAgZXZhbCBfdGltZW91dD1cJCR7bmFtZX1fYXNrX3RpbWVvdXQKKyAgICAgIGV2YWwg X3Jlc3BvbnNlPVwkJHtuYW1lfV9hc2tfZGVmYXVsdAorCisgICAgICBpZiBbICEgJF90aW1lb3V0 IF07IHRoZW4KKyAgICAgICAgIF90aW1lb3V0PSRBU0tfVElNRU9VVAorICAgICAgZmkKKworICAg ICAgaWYgWyAhICRfcmVzcG9uc2UgXTsgdGhlbgorICAgICAgICAgX3Jlc3BvbnNlPSRBU0tfREVG QVVMVAorICAgICAgZmkKKworICAgICAgcmVhZCAtdCAkX3RpbWVvdXQgLXAgIlJDX0FTSyAtIEVu YWJsZSAkbmFtZT8gW3llc3xub10gIiBfZW5hYmxlCisgICAgICBpZiBbICQ/IC1lcSAxIF07IHRo ZW4KKyAgICAgICAgIF9lbmFibGU9JHtfcmVzcG9uc2V9CisgICAgICBmaQorICAgICAgaWYgY2hl Y2t5ZXNubyBfZW5hYmxlOyB0aGVuCisgICAgICAgICBfY2hvaWNlPSJ5ZXMiCisgICAgICAgICBf cmV0dXJuPTAKKyAgICAgIGVsc2UKKyAgICAgICAgIF9jaG9pY2U9Im5vIgorICAgICAgICAgX3Jl dHVybj0xCisgICAgICBmaQorICAgICAgZWNobyAiJF9jaG9pY2UiID4gJF9maWxlCisgICAgICBy ZXR1cm4gICRfcmV0dXJuOworICAgICAgOzsKKworICAgKikKIAkJd2FybiAiXCQkezF9IGlzIG5v dCBzZXQgcHJvcGVybHkgLSBzZWUgJHtyY3Zhcl9tYW5wYWdlfS4iCiAJCXJldHVybiAxCiAJCTs7 Cg== ------=_Part_83855_8042419.1163618489179--