VLAN support in rcNG [PATCH]

Ruslan Ermilov ru at FreeBSD.org
Sun Apr 18 14:02:41 PDT 2004

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.
Shell is quite a powerful tool:

echo ${foo%_*}.${foo##*_}

This replaces the last underscore with a dot.

Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040419/8e182390/attachment.bin

More information about the freebsd-current mailing list