Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Apr 2004 00:02:29 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Brooks Davis <brooks@one-eyed-alien.net>
Cc:        current@FreeBSD.org
Subject:   Re: VLAN support in rcNG [PATCH]
Message-ID:  <20040418210229.GA14628@ip.net.ua>
In-Reply-To: <20040418183445.GA24308@Odin.AC.HMC.Edu>
References:  <1082233506.408192a2c476a@webservices.migus.org> <20040417235302.GC3534@Odin.AC.HMC.Edu> <20040417201913.P34536@sasami.jurai.net> <20040418005436.GC14645@Odin.AC.HMC.Edu> <1082258483.4081f43366454@webservices.migus.org> <20040418035435.GF14645@Odin.AC.HMC.Edu> <1082264575.40820bff559cd@webservices.migus.org> <20040418183445.GA24308@Odin.AC.HMC.Edu>

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

--OXfL5xGRrasGEqWY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Apr 18, 2004 at 11:34:45AM -0700, Brooks Davis wrote:
> There is little or no complexity depending on how you solve the problem.
> My proposal was to let the kernel support <interface>_<tag> which would
> require no modifications to the rc system.  If you wanted to do it in
> the rc system, the equivalent of "tr . _" would have to be applied to
> the name before using the pseudo associative array lookup hack, that's
> it.  The only difficulty is that you have to do it without anything in
> /usr.
>=20
Shell is quite a powerful tool:

foo=3Dxl0_2
echo ${foo%_*}.${foo##*_}

This replaces the last underscore with a dot.


Cheers,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

--OXfL5xGRrasGEqWY
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFAguzlUkv4P6juNwoRAgZOAJ9iU7TAQ1syoK8FmV8UXW1qRgzNbQCfTdjw
Eo9R4ww3PKYWd29h+P9yJnc=
=9RZK
-----END PGP SIGNATURE-----

--OXfL5xGRrasGEqWY--



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