netinstall defaul configuration

I tested netinstall default configuration “configure script”.
It works, but not well. Netinstall installs only two first lines of the script I load in “configure script”, and nothing else of the script.
If I load the same script with “import file=” on a virgin router, it works and load successfully.
So, is there any limitation with scripts that can be loaded with netinstall?
Thanks

I think this is due to an error in your script. If script somehow fail - it will stop.

Ok

but I wrote that If I load the same script with “import file=” on a virgin router, it works and load successfully.
So, where is the error?

/interface bridge
add fast-forward=no name=bridge-camere
add fast-forward=no name=bridge-dorsale
/interface ethernet
set [ find default-name=ether2 ] poe-out=off
set [ find default-name=ether3 ] poe-out=off
set [ find default-name=ether4 ] poe-out=off
set [ find default-name=ether5 ] poe-out=off
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik

/interface bridge port
add bridge=bridge-dorsale interface=ether1
add bridge=bridge-dorsale interface=ether2
/ip address
add address=192.168.87.61/24 interface=bridge-dorsale network=192.168.87.0
/ip dns
set servers=192.168.87.1
/ip dns static
add address=192.168.88.1 name=router.lan
/ip route
add distance=1 gateway=192.168.87.1
/system clock
set time-zone-name=Europe/Rome
/system identity
set name=Camere1
/system ntp client
set enabled=yes primary-ntp=193.204.114.232

and with netinstall configure script, it loads only the two first interface bridge entries

Your script always need to have ethernet names as default.

/interface ethernet
set [ find default-name=ether2 ] poe-out=off

Its better to use /interface ethernet set [find] poe-out-off and remove all other lines.

I would make your script like this :

/interface bridge
add fast-forward=no name=bridge-camere
add fast-forward=no name=bridge-dorsale

/interface ethernet
set [ find ] poe-out=off

#Dont think you need this
/Interface wireless security-profiles
set default=supplicant-identity=MikroTik

/interface bridge port
add bridge=bridge-dorsale interface=ether1
add bridge=bridge-dorsale interface=ether2

/ip address
add address=192.168.87.61/24 interface=bridge-dorsale

/ip dns
set servers=192.168.87.1

/ip dns static
add address=192.168.88.1 name=router.lan

/ip route
add distance=1 gateway=192.168.87.1

/system clock
set time-zone-name=Europe/Rome

/system identity
set name=Camere1

/system ntp client
set enabled=yes primary-ntp=193.204.114.232

Use delay at the top of the script or loop to wait for ethernet interfaces. It is necessary because script may be executed before drivers are loaded.

This is the solution.
I addedd a 15s delay and my script loaded correctly with netinstall.
Always I don’t understand why the same script loads correctly with “import file=script.rsc” without delay.

Because when you log and run import manually, all drivers are already loaded.

Care to post/share the updated script?