3 # $Id: tnldown,v 1.7 1999/09/27 10:01:33 misiek Exp $
5 # Author: Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
8 cd /etc/sysconfig/network-scripts
9 . /etc/rc.d/init.d/functions.network
10 . /etc/sysconfig/network
15 echo "usage: tnldown <device name>" >&2
19 [ -f "/etc/sysconfig/interfaces/$CONFIG" ] || CONFIG=tnlcfg-$CONFIG
20 [ -f "/etc/sysconfig/interfaces/$CONFIG" ] || {
21 echo "usage: tnldown <device name>" >&2
27 if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ]
32 if [ "${IPV6_TUNNELCONFIG}" != "yes" ] && [ "${MODE}" == "sit" ] || \
33 [ "${IPX}" != "yes" ] && [ "${MODE}" == "ipxip" ] || \
34 [ "${IPX}" != "yes" ] && [ "${MODE}" == "ipipx" ]
39 if [ "${MODE}" == "ipip" ] || [ "${MODE}" == "sit" ] || [ "${MODE}" == "gre" ]; then
41 ip tunnel del ${DEVICE}
43 elif [ "${MODE}" == "ipxip" ] || [ "${MODE}" == "ipipx" ]; then
45 echo "obs³uga ipxip jeszcze nie zrobiona"