From 0251dca9e865ca677aedc613e90c2a1ef96d2b0b Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 11 Aug 2013 09:46:16 +0200 Subject: [PATCH] core72: start ipsec only if enabled after update. --- config/rootfiles/core/72/update.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config/rootfiles/core/72/update.sh b/config/rootfiles/core/72/update.sh index 15d1bf2f94..c3dc20a81d 100644 --- a/config/rootfiles/core/72/update.sh +++ b/config/rootfiles/core/72/update.sh @@ -34,7 +34,7 @@ done # #Stop services -ipsec stop +/etc/init.d/ipsec stop /etc/init.d/snort stop /etc/init.d/squid stop @@ -47,7 +47,10 @@ extract_files #Start services /etc/init.d/squid start /etc/init.d/snort start -ipsec start +if [ `grep "ENABLED=on" /var/ipfire/vpn/settings` ]; then + /etc/init.d/ipsec start +fi + # #Update Language cache @@ -64,4 +67,3 @@ sync sendprofile #Don't report the exitcode last command exit 0 - -- 2.39.5