Return to 014.gre.stop CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / default / rc.d |
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