Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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