diff options
author | Bill Nottingham <notting@redhat.com> | 2004-04-13 15:48:41 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-04-13 15:48:41 +0000 |
commit | 1398f506657cbd2fdf7b232a04c90348823d6fef (patch) | |
tree | 70a9d757eacf77e84b80f2a71b7b1195f34d458b /sysconfig/network-scripts/ifdown-ipsec | |
parent | 216439c2a0bbe4c4b01e6e5fd69b01841c419d96 (diff) | |
download | initscripts-1398f506657cbd2fdf7b232a04c90348823d6fef.tar initscripts-1398f506657cbd2fdf7b232a04c90348823d6fef.tar.gz initscripts-1398f506657cbd2fdf7b232a04c90348823d6fef.tar.bz2 initscripts-1398f506657cbd2fdf7b232a04c90348823d6fef.tar.xz initscripts-1398f506657cbd2fdf7b232a04c90348823d6fef.zip |
get host/network set correctly
Diffstat (limited to 'sysconfig/network-scripts/ifdown-ipsec')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-ipsec | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifdown-ipsec b/sysconfig/network-scripts/ifdown-ipsec index 695a71a1..92694d3c 100755 --- a/sysconfig/network-scripts/ifdown-ipsec +++ b/sysconfig/network-scripts/ifdown-ipsec @@ -34,6 +34,12 @@ fi [ -z "$KEYING" ] && KEYING=manual +if [ -n "$SRCNET" -o -n "$DSTNET" ]; then + MODE=tunnel +else + MODE=host +fi + if [ -z "$SRC" ]; then SRC=`ip -o route get to $DST | sed "s|.*src \([^ ]*\).*|\1|"` fi |