File:  [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / uboot / rc.d / 014.gre.stop
Revision 1.2.2.1: download - view: text, annotated - select for diffs - revision graph
Thu Mar 5 23:41:45 2015 UTC (9 years, 4 months ago) by misho
Branches: elwix2_3
Diff to: branchpoint 1.2: preferred, unified
modify files

#!/bin/sh

IFACE="gre0"

TUNNEL="172.31.2.1 172.31.2.2"

OPTS=""
IP="10.10.10.1/24 10.10.10.2"

[ -z "$IFACE" ] && exit

echo "Config GRE network interface $IFACE ..."

ifconfig $IFACE create || exit
ifconfig $IFACE tunnel $TUNNEL
if [ -n "$IP" ]; then
	ifconfig $IFACE inet $IP
fi
ifconfig $IFACE $OPTS up

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