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

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

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