From 0e8fda27ab26dcc09ab797c4c199c68e80bf180c Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 13 Apr 2004 15:48:57 +0000 Subject: get host/network set correctly --- sysconfig/network-scripts/ifdown-ipsec | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.1