From: Arne Fitzenreiter Date: Sun, 11 Aug 2013 07:46:16 +0000 (+0200) Subject: core72: start ipsec only if enabled after update. X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=0251dca9e865ca677aedc613e90c2a1ef96d2b0b core72: start ipsec only if enabled after update. --- diff --git a/config/rootfiles/core/72/update.sh b/config/rootfiles/core/72/update.sh index 15d1bf2f9..c3dc20a81 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 -