Community discussions

MikroTik App
 
User avatar
pants6000
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 87
Joined: Fri Sep 26, 2014 5:30 am

dealing with the y/n prompt using "system reset-configuration" in an imported file?

Wed Nov 09, 2022 12:23 am

I want to "/system reset-configuration" from a file that I am "/importing" under ROS 7.6.

Is there a way to skip the "dangerous! Reset anyway?" prompt when that command is in an imported file like this?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12008
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: dealing with the y/n prompt using "system reset-configuration" in an imported file?

Wed Nov 09, 2022 1:15 am

replace "/system reset....etc." with
[:execute "/system reset....etc."]
 
User avatar
pants6000
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 87
Joined: Fri Sep 26, 2014 5:30 am

Re: dealing with the y/n prompt using "system reset-configuration" in an imported file?

Wed Nov 09, 2022 4:05 am

Perfect, thank you!

My two-touch provisioning system is down to one-touch now!

Who is online

Users browsing this forum: MauriceW and 102 guests