From owner-freebsd-rc@FreeBSD.ORG Mon Mar 29 19:03:06 2010 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F807106564A; Mon, 29 Mar 2010 19:03:06 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 14D478FC15; Mon, 29 Mar 2010 19:03:05 +0000 (UTC) Received: by pwj4 with SMTP id 4so8742659pwj.13 for ; Mon, 29 Mar 2010 12:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=wePiIvQkuwem7Rq6RQqcQR8XLdljm4H/xAcZ58pCVX4=; b=T7qQB+3HT4cGMyhqYn8OSAtEuNc9I+sNt0t6hhH02PRttLw5VLgaIrfexdklTjkHDW m1S2+4X8zWqJZNgIY21MhUkyxiw3oMVWPpH1BEBujy7l4o1w9yKnO7M5tQEJRwvGBkaq aUsZKx3VtqhDW+BxBLSd443j+bxMGAP/UvzLU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=YqPl3MgOJif2p6IVoauxwOgeepDvCxkUd+sViH3Rs4BAlcPVPkKocI+QQ8/mX3Lb6a +J0IPH6Z2XOcXYkwJ6e81ta7DpiZe/QTnSO4Nh4znThg3cn8shbbq9JiM67hT0w1E9zu 6jIdeBM1RLXmfrOsOzgPZQ/U7PNaVqRoxWFAI= MIME-Version: 1.0 Received: by 10.140.127.14 with HTTP; Mon, 29 Mar 2010 12:03:05 -0700 (PDT) In-Reply-To: <201003291433.55567.jhb@freebsd.org> References: <201003261410.35830.jhb@freebsd.org> <201003291203.18304.jhb@freebsd.org> <4BB0E38D.1010605@FreeBSD.org> <201003291433.55567.jhb@freebsd.org> Date: Mon, 29 Mar 2010 12:03:05 -0700 Received: by 10.141.101.14 with SMTP id d14mr1323178rvm.100.1269889385589; Mon, 29 Mar 2010 12:03:05 -0700 (PDT) Message-ID: From: Xin LI To: John Baldwin Content-Type: multipart/mixed; boundary=000e0cd13a92bb6ccf0482f5295a Cc: Doug Barton , freebsd-rc@freebsd.org Subject: Re: mountd and reload X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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: Mon, 29 Mar 2010 19:03:06 -0000 --000e0cd13a92bb6ccf0482f5295a Content-Type: text/plain; charset=UTF-8 What about this one... (rc.subr in checkyesno would accept a list of variables and return 0 if any of them was set to "YES", and 1 if none of them was set or, when there is at least one "NO" and no "YES" set). Cheers, -- Xin LI http://www.delphij.net --000e0cd13a92bb6ccf0482f5295a Content-Type: application/octet-stream; name="rc.diff" Content-Disposition: attachment; filename="rc.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g7dnaq5t0 SW5kZXg6IHJjLnN1YnIKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gcmMuc3VicgkocmV2aXNpb24gMjA1ODQ2KQor KysgcmMuc3Vicgkod29ya2luZyBjb3B5KQpAQCAtMTM4LDI0ICsxMzgsMjggQEAKICMKIGNoZWNr eWVzbm8oKQogewotCWV2YWwgX3ZhbHVlPVwkJHsxfQotCWRlYnVnICJjaGVja3llc25vOiAkMSBp cyBzZXQgdG8gJF92YWx1ZS4iCi0JY2FzZSAkX3ZhbHVlIGluCisJbG9jYWwgX25vIF92YXJuYW1l IF92YWx1ZQorCV9ubz1mYWxzZQorCWZvciBfdmFybmFtZSBpbiAkKjsgZG8KKwkJZXZhbCBfdmFs dWU9XCQke192YXJuYW1lfQorCQlkZWJ1ZyAiY2hlY2t5ZXNubzogJF92YXJuYW1lIGlzIHNldCB0 byAkX3ZhbHVlLiIKKwkJY2FzZSAkX3ZhbHVlIGluCiAKLQkJIwkieWVzIiwgInRydWUiLCAib24i LCBvciAiMSIKLQlbWXldW0VlXVtTc118W1R0XVtScl1bVXVdW0VlXXxbT29dW05uXXwxKQotCQly ZXR1cm4gMAotCQk7OworCQkJIwkieWVzIiwgInRydWUiLCAib24iLCBvciAiMSIKKwkJW1l5XVtF ZV1bU3NdfFtUdF1bUnJdW1V1XVtFZV18W09vXVtObl18MSkKKwkJCXJldHVybiAwCisJCQk7Owog Ci0JCSMJIm5vIiwgImZhbHNlIiwgIm9mZiIsIG9yICIwIgotCVtObl1bT29dfFtGZl1bQWFdW0xs XVtTc11bRWVdfFtPb11bRmZdW0ZmXXwwKQotCQlyZXR1cm4gMQotCQk7OwotCSopCi0JCXdhcm4g IlwkJHsxfSBpcyBub3Qgc2V0IHByb3Blcmx5IC0gc2VlICR7cmN2YXJfbWFucGFnZX0uIgotCQly ZXR1cm4gMQotCQk7OwotCWVzYWMKKwkJCSMJIm5vIiwgImZhbHNlIiwgIm9mZiIsIG9yICIwIgor CQlbTm5dW09vXXxbRmZdW0FhXVtMbF1bU3NdW0VlXXxbT29dW0ZmXVtGZl18MCkKKwkJCV9ubz10 cnVlCisJCQk7OworCQllc2FjCisJZG9uZQorCWlmIFsgIiR7X25vfSIgPSBmYWxzZSBdOyB0aGVu CisJCXdhcm4gIlwkJCogaXMgbm90IHNldCBwcm9wZXJseSAtIHNlZSAke3JjdmFyX21hbnBhZ2V9 LiIKKwlmaQorCXJldHVybiAxCiB9CiAKICMKSW5kZXg6IHJjLmQvbW91bnRkCj09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0K LS0tIHJjLmQvbW91bnRkCShyZXZpc2lvbiAyMDU4NDYpCisrKyByYy5kL21vdW50ZAkod29ya2lu ZyBjb3B5KQpAQCAtMTAsNyArMTAsNyBAQAogLiAvZXRjL3JjLnN1YnIKIAogbmFtZT0ibW91bnRk IgotcmN2YXI9YHNldF9yY3ZhcmAKK3JjdmFyPSJgc2V0X3JjdmFyYCBuZnNfc2VydmVyX2VuYWJs ZSBuZnNkX2VuYWJsZSIKIGNvbW1hbmQ9Ii91c3Ivc2Jpbi8ke25hbWV9IgogcGlkZmlsZT0iL3Zh ci9ydW4vJHtuYW1lfS5waWQiCiByZXF1aXJlZF9maWxlcz0iL2V0Yy9leHBvcnRzIgo= --000e0cd13a92bb6ccf0482f5295a--