Annotation of elwix/config/etc/uboot/rc.d/013.vlan0.stop, revision 1.2.2.1
1.2 misho 1: #!/bin/sh
2:
3: IFACE="vlan0"
4:
5: VLAN="1"
1.2.2.1 ! misho 6: VLANDEV="em0"
1.2 misho 7:
1.2.2.1 ! misho 8: OPTS=""
! 9: #IP="auto"
1.2 misho 10: IP="192.168.0.1/24"
1.2.2.1 ! misho 11: #IP6="auto"
! 12: IP6=""
1.2 misho 13:
1.2.2.1 ! misho 14: [ -z "$IFACE" -o -z "$VLANDEV" ] && exit
! 15:
! 16: echo "Config VLAN #$VLAN network interface $IFACE ..."
! 17:
! 18: ifconfig $IFACE create vlan $VLAN vlandev $VLANDEV || exit
! 19: if [ -n "$IP" ]; then
! 20: if [ "$IP" = "auto" ]; then
! 21: dhclient $IFACE
! 22: else
! 23: ifconfig $IFACE inet $IP
! 24: fi
! 25: fi
! 26: if [ -n "$IP6" ]; then
! 27: if [ "$IP" = "auto" ]; then
! 28: ifconfig $IFACE accept_rtadv
! 29: else
! 30: ifconfig $IFACE inet6 $IP6
! 31: fi
! 32: fi
! 33: ifconfig $IFACE $OPTS up
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>