diff options
author | Bill Nottingham <notting@redhat.com> | 2004-03-16 23:49:34 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-03-16 23:49:34 +0000 |
commit | 7c98f624049d6096c5fbd5ca83f2ebbf6cf16944 (patch) | |
tree | 7e7590b3eb67432e0e298749d1101494f850ffc5 /sysconfig/network-scripts | |
parent | 3711016e96ba198bdd321be56f241e2c8314a184 (diff) | |
download | initscripts-7c98f624049d6096c5fbd5ca83f2ebbf6cf16944.tar initscripts-7c98f624049d6096c5fbd5ca83f2ebbf6cf16944.tar.gz initscripts-7c98f624049d6096c5fbd5ca83f2ebbf6cf16944.tar.bz2 initscripts-7c98f624049d6096c5fbd5ca83f2ebbf6cf16944.tar.xz initscripts-7c98f624049d6096c5fbd5ca83f2ebbf6cf16944.zip |
allow for no AH SPI (#116922, <felipe_alfaro@linuxmail.org>)
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup-ipsec | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysconfig/network-scripts/ifup-ipsec b/sysconfig/network-scripts/ifup-ipsec index 17361bc7..3dafd9f0 100755 --- a/sysconfig/network-scripts/ifup-ipsec +++ b/sysconfig/network-scripts/ifup-ipsec @@ -108,10 +108,10 @@ if [ "$KEYING" = "manual" ]; then if [ "$MODE" = "host" ]; then /sbin/setkey -c >/dev/null 2>&1<< EOF -delete $SRC $DST ah $SPI_AH_OUT; -delete $DST $SRC ah $SPI_AH_IN; -delete $SRC $DST esp $SPI_ESP_OUT; -delete $DST $SRC esp $SPI_ESP_IN; +${SPI_AH_OUT:+delete $SRC $DST ah $SPI_AH_OUT;} +${SPI_AH_IN:+delete $DST $SRC ah $SPI_AH_IN;} +${SPI_ESP_OUT:+delete $SRC $DST esp $SPI_ESP_OUT;} +${SPI_ESP_IN:+delete $DST $SRC esp $SPI_ESP_IN;} spddelete $SRC $DST any -P out; spddelete $DST $SRC any -P in; |