File:  [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / uboot / rc.d / 015.bridge.stop
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Mon Sep 15 19:06:52 2014 UTC (9 years, 10 months ago) by misho
Branches: MAIN
CVS tags: elwix2_3, HEAD, ELWIX2_2p0
elwix 2.2

    1: #!/bin/sh
    2: 
    3: IFACE="bridge0"
    4: 
    5: BRIDGED="fxp0 rl0 wlan0"
    6: STP="fxp0 rl0"
    7: 
    8: IP=""
    9: 
   10: echo "Config Bridge interface $IFACE ..."
   11: 
   12: ifconfig $IFACE create
   13: 
   14: for i in $BRIDGED; do
   15: 	ifconfig $IFACE addm $i
   16: done
   17: for i in $STP; do
   18: 	ifconfig $IFACE stp $i
   19: done
   20: 
   21: ifconfig $IFACE inet $IP up

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>