Annotation of elwix/config/etc/uboot/rc.d/015.bridge.stop, revision 1.2.2.1
1.2 misho 1: #!/bin/sh
2:
3: IFACE="bridge0"
4:
1.2.2.1 ! misho 5: BRIDGED="em0 rl0 wlan0"
! 6: STP="em0 rl0"
1.2 misho 7:
1.2.2.1 ! misho 8: OPTS=""
! 9: #IP="auto"
1.2 misho 10: IP=""
1.2.2.1 ! misho 11: ALIASES=""
! 12: #IP6="auto"
! 13: IP6=""
! 14: ALIASES6=""
! 15:
! 16: [ -z "$IFACE" ] && exit
1.2 misho 17:
18: echo "Config Bridge interface $IFACE ..."
19:
1.2.2.1 ! misho 20: ifconfig $IFACE create || exit
1.2 misho 21:
22: for i in $BRIDGED; do
23: ifconfig $IFACE addm $i
24: done
25: for i in $STP; do
26: ifconfig $IFACE stp $i
27: done
28:
1.2.2.1 ! misho 29: if [ -n "$IP" ]; then
! 30: if [ "$IP" = "auto" ]; then
! 31: dhclient $IFACE
! 32: else
! 33: ifconfig $IFACE inet $IP
! 34: fi
! 35: fi
! 36: for i in $ALIASES; do
! 37: ifconfig $IFACE inet alias $i
! 38: done
! 39: if [ -n "$IP6" ]; then
! 40: if [ "$IP" = "auto" ]; then
! 41: ifconfig $IFACE accept_rtadv
! 42: else
! 43: ifconfig $IFACE inet6 $IP6
! 44: fi
! 45: fi
! 46: for i in $ALIASES6; do
! 47: ifconfig $IFACE inet6 alias $i
! 48: done
! 49:
! 50: ifconfig $IFACE $OPTS up
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>