]> git.pld-linux.org Git - projects/rc-scripts.git/blob - sysconfig/network-scripts/tnldown
- nopmtudisc isn't specified by default
[projects/rc-scripts.git] / sysconfig / network-scripts / tnldown
1 #!/bin/sh
2 #
3 #       $Id: tnldown,v 1.7 1999/09/27 10:01:33 misiek Exp $
4 #
5 # Author: Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
6 #
7
8 cd /etc/sysconfig/network-scripts
9 . /etc/rc.d/init.d/functions.network
10 . /etc/sysconfig/network
11
12 CONFIG=$1
13
14 [ -z "$CONFIG" ] && {
15     echo "usage: tnldown <device name>" >&2
16     exit 1
17 }
18
19 [ -f "/etc/sysconfig/interfaces/$CONFIG" ] || CONFIG=tnlcfg-$CONFIG
20 [ -f "/etc/sysconfig/interfaces/$CONFIG" ] || {
21     echo "usage: tnldown <device name>" >&2
22     exit 1
23 }
24
25 source_config
26
27 if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ]
28 then
29         exit
30 fi
31
32 if [ "${IPV6_TUNNELCONFIG}" != "yes" ] && [ "${MODE}" == "sit" ] || \
33    [ "${IPX}" != "yes" ] && [ "${MODE}" == "ipxip" ] || \
34    [ "${IPX}" != "yes" ] && [ "${MODE}" == "ipipx" ]
35 then
36         exit
37 fi
38
39 if [ "${MODE}" == "ipip" ] || [ "${MODE}" == "sit" ] || [ "${MODE}" == "gre" ]; then
40
41         ip tunnel del ${DEVICE}
42
43 elif [ "${MODE}" == "ipxip" ] || [ "${MODE}" == "ipipx" ]; then
44
45 echo "obs³uga ipxip jeszcze nie zrobiona"
46
47 fi
This page took 0.032242 seconds and 4 git commands to generate.