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

    1: #!/bin/sh
    2: 
    3: IFACE="gre0"
    4: 
    5: TUNNEL="172.31.2.1 172.31.2.2"
    6: 
    7: OPTS=""
    8: IP="10.10.10.1/24 10.10.10.2"
    9: 
   10: [ -z "$IFACE" ] && exit
   11: 
   12: echo "Config GRE network interface $IFACE ..."
   13: 
   14: ifconfig $IFACE create || exit
   15: ifconfig $IFACE tunnel $TUNNEL
   16: if [ -n "$IP" ]; then
   17: 	ifconfig $IFACE inet $IP
   18: fi
   19: ifconfig $IFACE $OPTS up

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