Page 1 of 1

Startup settings (factory defaults)

Posted: Sun Mar 24, 2024 2:54 am
by cristian1986
Hello guys, sorry for my newbie question, I have searched all over the web with no positive results. How can I make a configuration predefined by me in a script, start when a mikrotik returns it to factory settings? this mikrotik being in a remote site.
I have seen something with netinstall, but the truth is I don't know how a startup script could be loaded that remains permanently in a mikrotik, if you can guide me or a page to visit, thank you very much.

Re: Startup settings (factory defaults)

Posted: Sun Mar 24, 2024 3:09 am
by Amm0
The netinstall will do it via "-s myscript.rsc":
https://help.mikrotik.com/docs/display/ ... nsforLinux

You can also create a branding package, that includes the default script (as well as logos etc.). Branding creates a package, so you copy it and reboot, then what you set on the branding kit web site becoming the default:
docs - https://help.mikrotik.com/docs/display/ROS/Branding
video - https://www.youtube.com/watch?v=EE5EwwgHZ6A

Re: Startup settings (factory defaults)

Posted: Sun Mar 24, 2024 3:12 am
by Amm0
Just to be clear:
If no one do a /system/reset-configuration or push-and-hold reset button, the config does stick around. All changes are automatically saved and used immediately.

You only need netinstall or branding if your want to replace what's in "/system/default-configuration print" - which only get trigger explicitly (via /system/reset-configuration or pushing reset while powering for 5-10 seconds (when until USR light flashed).