]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - config/rootfiles/core/68/update.sh
core68: stop strongswan while update it.
[people/teissler/ipfire-2.x.git] / config / rootfiles / core / 68 / update.sh
index 11cab1009257e8865f73bf5ce653344b4ce4e32c..e68229a3fd07b010b78bab2cf83557a952030060 100644 (file)
@@ -39,6 +39,7 @@ rm -rf /opt/pakfire/db/*/meta-freefont
 
 #
 #Stop services
+/etc/init.d/ipsec stop
 
 #
 #Extract files
@@ -46,6 +47,9 @@ extract_files
 
 #
 #Start services
+if [ `grep "ENABLED=on" /var/ipfire/vpn/settings` ]; then
+       /etc/init.d/ipsec start
+fi
 
 #
 #Update Language cache
@@ -65,3 +69,4 @@ sync
 sendprofile
 #Don't report the exitcode last command
 exit 0
+