]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
core74: Add strongswan update.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 2 Dec 2013 19:55:58 +0000 (20:55 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 2 Dec 2013 19:55:58 +0000 (20:55 +0100)
config/rootfiles/core/74/filelists/i586/strongswan-padlock [new symlink]
config/rootfiles/core/74/filelists/strongswan [new symlink]
config/rootfiles/core/74/update.sh

diff --git a/config/rootfiles/core/74/filelists/i586/strongswan-padlock b/config/rootfiles/core/74/filelists/i586/strongswan-padlock
new file mode 120000 (symlink)
index 0000000..2412824
--- /dev/null
@@ -0,0 +1 @@
+../../../../common/i586/strongswan-padlock
\ No newline at end of file
diff --git a/config/rootfiles/core/74/filelists/strongswan b/config/rootfiles/core/74/filelists/strongswan
new file mode 120000 (symlink)
index 0000000..90c727e
--- /dev/null
@@ -0,0 +1 @@
+../../../common/strongswan
\ No newline at end of file
index 50cf903c52715f50b31708f1ba6bb68a980456b4..3f8abce051141ca0529a4741e89258432fece007 100644 (file)
@@ -35,6 +35,7 @@ done
 
 #
 #Stop services
+/etc/init.d/ipsec stop
 /etc/init.d/squid stop
 
 
@@ -61,6 +62,10 @@ chown nobody:nobody /var/ipfire/proxy/squid.conf
 #Start services
 /etc/init.d/squid start
 
+if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
+       /etc/init.d/ipsec start
+fi
+
 #
 #Update Language cache
 perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
@@ -75,4 +80,4 @@ sync
 /etc/init.d/fireinfo start
 sendprofile
 #Don't report the exitcode last command
-exit 0
\ No newline at end of file
+exit 0