#!/bin/sh # This is a sample script for ip-up # this script is called when pengfork setup the inteface # # defined variables: # IFNAME : the interface name where tunneling is done # ADDRESS : local ip address # NETMASK : netmask for the address # NETWORK : network for the address # BROADCAST : broadcast address # GATEWAY : the default gateway IFCONFIG=/sbin/ifconfig ROUTE=/sbin/route if [ -x $IFCONFIG ]; then $IFCONFIG $IFNAME $ADDRESS mtu $MTU up else echo "$0: $IFCONFIG not found" fi if [ -x $ROUTE ]; then #$ROUTE del default $ROUTE add default gw $ADDRESS else echo "$0: $ROUTE not found" fi