core72: start ipsec only if enabled after update.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 11 Aug 2013 07:46:16 +0000 (09:46 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 11 Aug 2013 07:46:16 +0000 (09:46 +0200)
config/rootfiles/core/72/update.sh

index 15d1bf2f947e4843e6498a861290b56e27c44e43..c3dc20a81db19a6d8d2f72966be16c607c3ad46b 100644 (file)
@@ -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
-