diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-06-26 09:23:53 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-06-26 09:23:53 +0200 |
commit | b00aefc2840458e26c0c7f04ec6733e870b70e7e (patch) | |
tree | 299fe5a3de07d1b3cf25db608158aa01eee4c143 /scripts | |
parent | c0b76e61707af9ca61cc25acfc763d9ad6eb0429 (diff) | |
download | vyatta-cfg-b00aefc2840458e26c0c7f04ec6733e870b70e7e.tar.gz vyatta-cfg-b00aefc2840458e26c0c7f04ec6733e870b70e7e.zip |
ipsec: T3643: delete potential zombie files on system startup
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/init/vyos-router | 10 |
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 |