you might need to see what this script /mnt/legato/system/bin/configEcm is doing:
Or you can modify the init script:
you can also run script in legato application