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