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
+int do_factory_default(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) | |
+{ | |
+ int ret = 1; | |
+ char ch; | |
+ | |
+ switch (argc) { | |
+ case 2: | |
+ if(strcmp(argv[1],"set-default") == 0) { | |
+ printf("Execution of \"factory set-default\" will remove all user data like config, keys etc.\n\n"); | |
+ printf("Do you want to continue? (Y/N) "); |
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" |