Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 1a768e2b0bb306928f4131a88a7306aa > files > 3

penggy-0.2.1-5mdv2008.1.i586.rpm

#!/bin/sh

# This is a sample script for ip-up
# this script is called when penggy setup the interface
#
# defined variables:
# IFNAME : the interface name where tunneling is done
# ADDRESS : local ip address
# DOMAIN : the given domain name
# DNS : the given DNS ip address

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 add -host $ADDRESS dev $IFNAME
        $ROUTE add default gw $ADDRESS
else
        echo "$0: $ROUTE not found"
fi