Community discussions

MikroTik App
 
cristian1986
just joined
Topic Author
Posts: 6
Joined: Fri Nov 01, 2019 12:42 am

Startup settings (factory defaults)

Sun Mar 24, 2024 2:54 am

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.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3505
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Startup settings (factory defaults)

Sun Mar 24, 2024 3:09 am

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
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3505
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Startup settings (factory defaults)

Sun Mar 24, 2024 3:12 am

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).

Who is online

Users browsing this forum: Bing [Bot] and 11 guests