SLEEP=600; FILE="current_config.cfg"; cfg = nb_config_summary(); printf("Saving current config..."); f=fopen(FILE, "w"); fwrite(f, cfg); fclose(f); printf("Done\n"); printf("Conifg will be reverted in %d seconds.\n", SLEEP); printf("If you want to keep your config changes, just stop this script.\n"); printf("\n\nNote: SDK changes could interrupt this script.\n"); printf("Please don`t make changes to SDK.\n"); sleep(SLEEP); printf("Installing backup config now.\n"); nb_update_config(sprintf("file:///%s", FILE)); exit(0);