#!/bin/sh # # $Id: tnldown,v 1.8 1999/10/06 16:52:37 kloczek Exp $ # # Author: Arkadiusz Mi¶kiewicz # cd /etc/sysconfig/network-scripts . /etc/rc.d/init.d/functions.network . /etc/sysconfig/network CONFIG=$1 [ -z "$CONFIG" ] && { echo "usage: tnldown " >&2 exit 1 } [ -f "/etc/sysconfig/interfaces/$CONFIG" ] || CONFIG=tnlcfg-$CONFIG [ -f "/etc/sysconfig/interfaces/$CONFIG" ] || { echo "usage: tnldown " >&2 exit 1 } source_config if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ] then exit fi if [ "${IPV6_TUNNELCONFIG}" != "yes" ] && [ "${MODE}" = "sit" ] || \ [ "${IPX}" != "yes" ] && [ "${MODE}" = "ipxip" ] || \ [ "${IPX}" != "yes" ] && [ "${MODE}" = "ipipx" ] then exit fi if [ "${MODE}" = "ipip" ] || [ "${MODE}" = "sit" ] || [ "${MODE}" = "gre" ]; then ip tunnel del ${DEVICE} elif [ "${MODE}" = "ipxip" ] || [ "${MODE}" = "ipipx" ]; then echo "obsługa ipxip jeszcze nie zrobiona" fi