summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/init/vyos-router10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/init/vyos-router b/scripts/init/vyos-router
index c73fe17..1fa8f09 100755
--- a/scripts/init/vyos-router
+++ b/scripts/init/vyos-router
@@ -220,9 +220,15 @@ security_reset ()
pam-auth-update --package --remove radius
fi
- # The PPPOE config files are re-generated by the configuration subsystem
- # on every boot, so we delete the old ones here.
+ # Certain configuration files are re-generated by the configuration
+ # subsystem and must reside under /etc and can not easily be moved to /run.
+ # So on every boot we simply delete any remaining files and let the CLI
+ # regenearte them.
+
+ # PPPoE
rm -f /etc/ppp/peers/pppoe* /etc/ppp/peers/wlm*
+ # IPSec
+ rm -rf /etc/ipsec.conf /etc/ipsec.secrets /etc/swanctl
}
# As VyOS does not execute commands that are not present in the CLI we need this