Bridge config in /etc/rc (patch)
Paul Schenkeveld
fb-hackers at psconsult.nl
Tue May 13 01:07:53 PDT 2003
Hi All,
On Wed, May 07, 2003 at 08:58:56PM -0700, Mikko Työläjärvi wrote:
> On Thu, 8 May 2003 . at babolo.ru wrote:
>
> [...]
>
> > Interesting... IF new builtin command will be written,
> > has it chance to be accepted?
> > such as "list prefix" lists all sh variables with
> > names prefix* ?
>
> You mean something like:
>
> list_prefix() {
> eval "set |
> while read v; do case \$v in $1*) echo \"\${v%%=*}\";; esac; done"
> }
Please be ware of the following:
# rc.conf snippet
static_routes="goodyear \
firestone \
bridgestone"
route_goodyear="... "
route_firestone="... "
route_bridgestone="... "
bridge_foo="... "
bridge_bar="... "
Now `list_prefix bridge` will also list bridgestone because multi-line
variables will not be properly detected by list_prefix.
> It forks an extra process, I know...
>
> $.02,
> /Mikko
$2e-2
Paul Schenkeveld
More information about the freebsd-hackers
mailing list