From bdbfbac6b473908dcf93cf96bce8dc762c87d3fc Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 2 Dec 2013 20:55:58 +0100 Subject: [PATCH] core74: Add strongswan update. --- config/rootfiles/core/74/filelists/i586/strongswan-padlock | 1 + config/rootfiles/core/74/filelists/strongswan | 1 + config/rootfiles/core/74/update.sh | 7 ++++++- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 120000 config/rootfiles/core/74/filelists/i586/strongswan-padlock create mode 120000 config/rootfiles/core/74/filelists/strongswan diff --git a/config/rootfiles/core/74/filelists/i586/strongswan-padlock b/config/rootfiles/core/74/filelists/i586/strongswan-padlock new file mode 120000 index 0000000000..2412824fb2 --- /dev/null +++ b/config/rootfiles/core/74/filelists/i586/strongswan-padlock @@ -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 index 0000000000..90c727e265 --- /dev/null +++ b/config/rootfiles/core/74/filelists/strongswan @@ -0,0 +1 @@ +../../../common/strongswan \ No newline at end of file diff --git a/config/rootfiles/core/74/update.sh b/config/rootfiles/core/74/update.sh index 50cf903c52..3f8abce051 100644 --- a/config/rootfiles/core/74/update.sh +++ b/config/rootfiles/core/74/update.sh @@ -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 -- 2.39.5