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