Annotation of elwix/config/etc/uboot/rc.d/014.gre.stop, revision 1.2.2.1
1.2 misho 1: #!/bin/sh
2:
3: IFACE="gre0"
4:
5: TUNNEL="172.31.2.1 172.31.2.2"
6:
1.2.2.1 ! misho 7: OPTS=""
1.2 misho 8: IP="10.10.10.1/24 10.10.10.2"
9:
1.2.2.1 ! misho 10: [ -z "$IFACE" ] && exit
! 11:
1.2 misho 12: echo "Config GRE network interface $IFACE ..."
1.2.2.1 ! misho 13:
! 14: ifconfig $IFACE create || exit
1.2 misho 15: ifconfig $IFACE tunnel $TUNNEL
1.2.2.1 ! misho 16: if [ -n "$IP" ]; then
! 17: ifconfig $IFACE inet $IP
! 18: fi
! 19: ifconfig $IFACE $OPTS up
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>