Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Mar 2010 12:03:05 -0700
From:      Xin LI <delphij@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        Doug Barton <dougb@freebsd.org>, freebsd-rc@freebsd.org
Subject:   Re: mountd and reload
Message-ID:  <a78074951003291203p2bb86f95g8a6752c8d33db750@mail.gmail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <delphij@delphij.net> 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
dWU9XCQke192YXJuYW1lfQorCQ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29ya2lu
ZyBjb3B5KQpAQCAtMTAsNyArMTAsNyBAQAogLiAvZXRjL3JjLnN1YnIKIAogbmFtZT0ibW91bnRk
IgotcmN2YXI9YHNldF9yY3ZhcmAKK3JjdmFyPSJgc2V0X3JjdmFyYCBuZnNfc2VydmVyX2VuYWJs
ZSBuZnNkX2VuYWJsZSIKIGNvbW1hbmQ9Ii91c3Ivc2Jpbi8ke25hbWV9IgogcGlkZmlsZT0iL3Zh
ci9ydW4vJHtuYW1lfS5waWQiCiByZXF1aXJlZF9maWxlcz0iL2V0Yy9leHBvcnRzIgo=
--000e0cd13a92bb6ccf0482f5295a--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a78074951003291203p2bb86f95g8a6752c8d33db750>