From 51fee4eefb9af0ca4b3ad9c22681ebae5ddea44d Mon Sep 17 00:00:00 2001 From: jason <> Date: Wed, 10 Jan 2001 22:17:10 +0000 Subject: [PATCH] support !command in bridgename.if files, too --- src/etc/netstart | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/etc/netstart b/src/etc/netstart index 27642dcb..bc7e4a77 100644 --- a/src/etc/netstart +++ b/src/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.74 2000/11/27 17:14:00 millert Exp $ +# $OpenBSD: netstart,v 1.75 2001/01/10 22:17:10 jason Exp $ # Returns true if $1 contains only alphanumerics isalphanumeric() { @@ -231,7 +231,15 @@ for bn in /etc/bridgename.*; do while read line ; do line=${line%%#*} # strip comments test -z "$line" && continue - brconfig $if $line + case "$line" in + "!"*) + cmd="${line#*!}" + ;; + *) + cmd="brconfig $if $line" + ;; + esac + eval "$cmd" done } < /etc/bridgename.$if done