summaryrefslogtreecommitdiffstats
path: root/src/etc/rc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-11-16 11:32:35 -0200
committerRenato Botelho <renato@netgate.com>2015-11-16 11:32:35 -0200
commit96fcf69829498a27292e6b4af538d2468fc8ae22 (patch)
tree89a8b643f8e6307b4f8e8105f1c15b4147c95085 /src/etc/rc
parenta99ac88822248850000045618298a8f0b9f1d854 (diff)
downloadpfsense-96fcf69829498a27292e6b4af538d2468fc8ae22.zip
pfsense-96fcf69829498a27292e6b4af538d2468fc8ae22.tar.gz
Make sure ipsec symlinks are removed to avoid breaking strongswan pkg upgrade
Diffstat (limited to 'src/etc/rc')
-rwxr-xr-xsrc/etc/rc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/etc/rc b/src/etc/rc
index 9aa5977..632fd83 100755
--- a/src/etc/rc
+++ b/src/etc/rc
@@ -217,6 +217,19 @@ fi
# Cleanup configuration files from previous instance
/bin/rm -rf /var/etc/*
+# Workaround for ipsec symlinks, otherwise it's going to break
+# strongswan pkg upgrade
+
+if [ -L /usr/local/etc/ipsec.d ]; then
+ rm -f /usr/local/etc/ipsec.d
+fi
+if [ -L /usr/local/etc/ipsec.conf ]; then
+ rm -f /usr/local/etc/ipsec.conf
+fi
+if [ -L /usr/local/etc/strongswan.conf ]; then
+ rm -f /usr/local/etc/strongswan.conf
+fi
+
echo -n "Creating symlinks..."
# Repair symlinks if they are broken
if [ -f /etc/newsyslog.conf ]; then
OpenPOWER on IntegriCloud