Well, as i recall Ubiquiti had the same issue on their Edgerouter X - Also with a mediatech chipset.
They fixed it long ago with a bootloader update - and in the newer firmware the fixed bootloader is “baked-in”
so issue should be fixable 
but please do not attempt to run the ubnt code on your GL-inet router - who knows what happens
give the guys at gl-inet time to fix this!
links to ubiquiti forumpost regarding this issue
https://community.ui.com/questions/EdgeRouter-X-acts-as-switch-during-boot/e1e0d46d-49f1-452d-9b1f-db4abc53cd37
and
https://community.ui.com/releases/DEPRECATED-EdgeMAX-EdgeRouter-X-X-SFP-bootloader-update-/63bad589-adc7-4522-8c4b-4885b6682fbb