Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 2002 13:57:22 +0200
From:      Peter Pentchev <roam@ringlet.net>
To:        Dominic Mitchell <dom@semantico.com>
Cc:        Baldur Gislason <baldur@foo.is>, Robert Withrow <witr@rwwa.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Suggestion:  usbd.conf uses rc.conf for options
Message-ID:  <20021028115722.GB17000@straylight.oblivion.bg>
In-Reply-To: <3DBD2442.5050602@semantico.com>
References:  <20021027193323.C76EA32B3@ns1.rwwa.com> <20021027194710.6AA69AB93@tesla.foo.is> <3DBD2442.5050602@semantico.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--CUfgB8w4ZwR/yMy5
Content-Type: text/plain; charset=windows-1251
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Oct 28, 2002 at 11:49:22AM +0000, Dominic Mitchell wrote:
> Baldur Gislason wrote:
> >I agree, that would be a nice feature in usbd, but a workaround to gain=
=20
> >the same functionality would be:
> >
> >attach "/usr/sbin/moused `/usr/bin/perl -e 'while(<>) { $foo =3D $_ . $f=
oo;=20
> >} if($foo =3D~ /^moused_flags=3D"(.*?)"$/im) { print $1; }' < /etc/rc.co=
nf` -p=20
> >/dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid"
>=20
> Why not just:
>=20
>   attach ". /etc/rc.conf; /usr/bin/moused ${moused_flags} -p=20
> /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid"
>=20
> (untested)

This had better be ". /etc/defaults/rc.conf; source_rc_confs; ..." :)

I have been thinking for quite some time of writing a little utility
that parses various configuration file mechanisms and allows the
administrator to specify which config mechanism to use for which
program.  I have a simple design in mind, which would allow direct
variable setting, use of /etc/rc.conf, use of other configuration files,
use of daemontools-style envdirs, and a couple of others, but so far,
there has been no time to actually start writing a simple
proof-of-concept thing.  Funny now, the timing; I was thinking of
writing up a simple rcenv(1) today or tomorrow, and then I saw this
thread :)

G'luck,
Peter

--=20
Peter Pentchev	roam@ringlet.net	roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
No language can express every thought unambiguously, least of all this one.

--CUfgB8w4ZwR/yMy5
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (FreeBSD)

iD8DBQE9vSYi7Ri2jRYZRVMRApvpAKC5xbu+5HtAbtbOJBgk4uhAnzyOFgCfVOjM
cAVCpBuMRSIAoo5rpWYKZL8=
=yELm
-----END PGP SIGNATURE-----

--CUfgB8w4ZwR/yMy5--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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