diff options
author | yar <yar@FreeBSD.org> | 2006-12-30 22:53:20 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2006-12-30 22:53:20 +0000 |
commit | c91e4c56f635b3ce863d881f8a49d213248826f9 (patch) | |
tree | 48f5b2fe4337977e994033a03ecdb0d82ffe59a6 /etc/rc.d/bridge | |
parent | 04d777c063bfd2bb16af385cd179669da6a2404e (diff) | |
download | FreeBSD-src-c91e4c56f635b3ce863d881f8a49d213248826f9.zip FreeBSD-src-c91e4c56f635b3ce863d881f8a49d213248826f9.tar.gz |
Eliminate global symbols starting with an underscore from rc.d
scripts, except for mdconfig* and jail. Such symbols are reserved
for the rc.subr internals. Most scripts can be fixed by just
declaring _foo symbols as local: few scripts actually need them to
be global.
Discussed with: dougb in freebsd-rc
Diffstat (limited to 'etc/rc.d/bridge')
-rw-r--r-- | etc/rc.d/bridge | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/etc/rc.d/bridge b/etc/rc.d/bridge index e2908db..5c8f61a 100644 --- a/etc/rc.d/bridge +++ b/etc/rc.d/bridge @@ -35,7 +35,7 @@ name="bridge" start_cmd="bridge_start" stop_cmd="bridge_stop" -_cmd="" +cmd="" glob_int () { case "$1" in @@ -52,7 +52,7 @@ bridge_test () { if [ -n "${interfaces}" ]; then for i in ${interfaces}; do if glob_int $iface $i ; then - ifconfig $bridge $_cmd $iface > /dev/null 2>&1 + ifconfig $bridge $cmd $iface > /dev/null 2>&1 return fi done @@ -62,13 +62,13 @@ bridge_test () { autobridge() { if [ -n "${autobridge_interfaces}" ]; then - if [ -z "$_iflist" ]; then + if [ -z "$iflist" ]; then # We're operating as a general network start routine. - _iflist="`list_net_interfaces`" + iflist="`list_net_interfaces`" fi for br in ${autobridge_interfaces}; do - for i in $_iflist; do + for i in $iflist; do bridge_test $br $i done done @@ -77,17 +77,17 @@ autobridge() bridge_start() { - _cmd="addm" + cmd="addm" autobridge } bridge_stop() { - _cmd="deletem" + cmd="deletem" autobridge } -_iflist=$2 +iflist=$2 load_rc_config $name run_rc_command "$1" |