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