From b00aefc2840458e26c0c7f04ec6733e870b70e7e Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 26 Jun 2021 09:23:53 +0200 Subject: ipsec: T3643: delete potential zombie files on system startup --- scripts/init/vyos-router | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3