Browse Source

support !command in bridgename.if files, too

OPENBSD_2_9
jason 24 years ago
parent
commit
51fee4eefb
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      src/etc/netstart

+ 10
- 2
src/etc/netstart View File

@ -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


Loading…
Cancel
Save