From ef14d8a064af141a1f1c4acccd6cf70ccc443304 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Tue, 24 Nov 2020 11:08:13 +0100 Subject: [PATCH] core153: ship strongswan Signed-off-by: Arne Fitzenreiter --- config/rootfiles/core/153/filelists/strongswan | 1 + config/rootfiles/core/153/update.sh | 4 ++++ 2 files changed, 5 insertions(+) create mode 120000 config/rootfiles/core/153/filelists/strongswan diff --git a/config/rootfiles/core/153/filelists/strongswan b/config/rootfiles/core/153/filelists/strongswan new file mode 120000 index 0000000000..90c727e265 --- /dev/null +++ b/config/rootfiles/core/153/filelists/strongswan @@ -0,0 +1 @@ +../../../common/strongswan \ No newline at end of file diff --git a/config/rootfiles/core/153/update.sh b/config/rootfiles/core/153/update.sh index af85c17941..f94cf49259 100644 --- a/config/rootfiles/core/153/update.sh +++ b/config/rootfiles/core/153/update.sh @@ -89,6 +89,7 @@ rm -rf /lib/modules # Remove files # Stop services +/etc/init.d/ipsec stop # Extract files extract_files @@ -111,6 +112,9 @@ sed -e "s/^%hourly,random \* \* \*/%hourly,random */g" \ fcrontab -z # Start services +if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then + /etc/init.d/ipsec start +fi /etc/init.d/suricata restart # Reload sysctl.conf -- 2.39.2