Sophie

Sophie

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

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

#!/bin/sh

# This is a sample script for ip-down
# this script is called when penggy delete the interface
#
# defined variables:
# IFNAME : the interface name where tunneling is done

IFCONFIG=/sbin/ifconfig
ROUTE=/sbin/route

if [ -x $ROUTE ]; then
        $ROUTE del default dev $IFNAME
else
        echo "$0: $ROUTE not found"
fi
		

if [ -x $IFCONFIG ]; then
	$IFCONFIG $IFNAME down 
else
	echo "$0: $IFCONFIG not found"
fi