I am using the branding maker and the autorun.rsc
The problem is that for some reason it only executes the first command.
If I copy paste the same code to a terminal it works fine.
No special commands
for example the second command is
/ip dhcp-client add disabled=no interface=ether1;
and it won’t execute.
I tried with and without semicolons ( at the end of the commands…
I also tried to keep the commands in one line separated by semicolons
In some cases it works but I haven’t figured out the exact case in which it doesn’t work
I know all the above. As I explained the script runs fine on a reset no defaults router from console if I copy all and paste and no errors are produced.
I just updated to 6.41 and the same dpk file runs fine and on reset all commands are executed fine and applied. I then looked at the version changes since 6.40.5 and didn’t find anything related to that.
The previous version that didn’t work was 6.40.5. I don’t know if it is related. I will try the same dpk file to more versions and I will send you some feedback.
oh finally I spotted it… I had to add a small delay at the beginning of the script
/delay 5;
was more than enough… I reset my device at least 20 times and ti worked 100%
without it 9/10 it would fail