Page 1 of 1

Erase Default Configuration Script

Posted: Fri Sep 23, 2011 10:54 pm
by hci
Is there a way to erase the default configuration script?

/system default-configuration print

Re: Erase Default Configuration Script

Posted: Fri Sep 23, 2011 10:58 pm
by Caci99
Usually there is a pop up windows the first time the routerboard starts.
There is a button to "remove default configuration".
I that doesn't pop up, try /system restore and then reboot the router.
You should see this time the pop up window.

Re: Erase Default Configuration Script

Posted: Sat Sep 24, 2011 6:54 am
by tjc
If I'm reading the script correctly that just runs it with the action set to "revert".

At a guess that script is baked in as part of the OS image and can't be changed other than as part of it.

Re: Erase Default Configuration Script

Posted: Sat Sep 24, 2011 8:09 pm
by NAB
At a guess that script is baked in as part of the OS image and can't be changed other than as part of it.
Nope. You can provision your own default script if you use NetInstall. This then becomes the script that survives a reset.

Re: Erase Default Configuration Script

Posted: Sun Sep 25, 2011 3:07 am
by tjc
So to get netinstall to setup an image with a custom configure script see this page: http://wiki.mikrotik.com/wiki/Netinstall Looks like you check the "Configure script" box and specify the script file in the text filed to the right of that. Can someone who has done this confirm?

Re: Erase Default Configuration Script

Posted: Mon Sep 26, 2011 3:31 am
by JorgeAmaral
Is there a way to erase the default configuration script?

/system default-configuration print
If you need to do a reset without running the default configuration script, you can try:

/system reset-configuration no-defaults=yes

Re: Erase Default Configuration Script

Posted: Mon Feb 06, 2012 4:01 am
by karapussa
Hello Jorge,
Thats it, thanks!
It works just like i needed...
Best Regards
Nuno :D