Created
September 4, 2021 08:51
-
-
Save Fohdeesha/175e813e3fd970ea65e15bf3030d2e20 to your computer and use it in GitHub Desktop.
FI 8080b fips_reset routine (from /etc/init.sh)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if fips_reset is set in uboot cleanup the startup-config files | |
cat /proc/cmdline | grep "fipsreset" 1>/dev/null 2>&1 | |
if [ $? -eq 0 ] | |
then | |
fnLog "FIPS reset is enable." | |
fnLog "Removing startup config & backup" | |
rm -rf /fast_iron/startup-* 1>/dev/null 2>&1 | |
fnLog "Removing stacking.boot" | |
rm -rf '/fast_iron/stacking.boot' 1>/dev/null 2>&1 | |
fnLog "Removing SSL_CERT_FILE" | |
rm -rf '/fast_iron/$$ssl.cert' 1>/dev/null 2>&1 | |
fnLog "Removing SSH_RSA_HOSTKEY_FILE" | |
rm -rf '/fast_iron/$$sshrsahost.key' 1>/dev/null 2>&1 | |
fnLog "Removing SSH_DSA_HOSTKEY_FILE" | |
rm -rf '/fast_iron/$$sshhost.key' 1>/dev/null 2>&1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment