Deleted Added
full compact
2c2
< # $FreeBSD: head/share/examples/netgraph/ether.bridge 95258 2002-04-22 13:44:47Z des $
---
> # $FreeBSD: head/share/examples/netgraph/ether.bridge 156313 2006-03-05 15:53:07Z schweikh $
9c9
< # 0. Make your own copy of this example script
---
> # 0. Make your own copy of this example script.
30,32c30,32
< # I you just want a normal bridge, just one will surfice.
< # in some cases you may want some mixture.
< #
---
> # If you just want a normal bridge, just one will be enough.
> # In some cases you may want some combination.
> #
34c34
< # Give each bridging network a unique name here
---
> # Give each bridging network a unique name here.
43c43
< # then leave it defined as the emtpy string.
---
> # then assign it the emtpy string.
48,50c48,50
< ####################################################################
< #### Everything below this point should not need to be modified ####
< ####################################################################
---
> #####################################################################
> #### Everything below this point should not need to be modified. ####
> #####################################################################
52c52
< # Routine to verify node's existence
---
> # Routine to verify node's existence.
61c61
< # Routine to get and display link stats
---
> # Routine to get and display link stats.
71c71
< # Start/restart routine
---
> # Start/restart routine.
74c74
< # Load netgraph KLD's as necessary
---
> # Load netgraph KLD's as necessary.
76,77c76
< if kldstat -v | grep -qw ${KLD}; then
< else
---
> if ! kldstat -v | grep -qw ${KLD}; then
84c83
< # Reset all interfaces
---
> # Reset all interfaces.
87c86
< # Verify all interfaces exist
---
> # Verify all interfaces exist.
89,90c88
< if ngctl info ${ETHER}: >/dev/null 2>&1; then
< else
---
> if ! ngctl info ${ETHER}: >/dev/null 2>&1; then
97c95
< # Create new ng_bridge(4) node, attached to the first interface
---
> # Create new ng_bridge(4) node, attached to the first interface.
102c100
< # Attach other interfaces as well
---
> # Attach other interfaces as well.
112c110
< # Hook up local interface, if any
---
> # Hook up local interface, if any.
119c117
< # Set all interfaces in promiscuous mode and don't overwrite src addr
---
> # Set all interfaces in promiscuous mode and don't overwrite src addr.
126c124
< # Stop routine
---
> # Stop routine.
134c132
< # Stats routine
---
> # Stats routine.
137c135
< # Make sure node exists
---
> # Make sure node exists.
156c154
< # Main entry point
---
> # Main entry point.
170c168
< echo "usage: ether.bridge [ start | stop | stats ]"
---
> echo "usage: $0 [ start | stop | stats ]"
173d170
<