Skip to content

Instantly share code, notes, and snippets.

@Fohdeesha
Created September 4, 2021 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fohdeesha/175e813e3fd970ea65e15bf3030d2e20 to your computer and use it in GitHub Desktop.
Save Fohdeesha/175e813e3fd970ea65e15bf3030d2e20 to your computer and use it in GitHub Desktop.
FI 8080b fips_reset routine (from /etc/init.sh)
#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