Intel NUC boots before network is ready

Hi.

Im using a Intel NUC with SSD.
I have just installed Ubuntu 16, and installed kodi.

I have a problem that Kodi boots faster than the network is ready, or at least i think that is the problem.
I can add network sources after kodi has started, but at next reboot i can’t access them. It’s SMB shares.
I can’t see the shared mysql database either, i have en empty library.

I start kodi with lightdm.conf as i have read here:
HOW-TO:Autostart_Kodi_for_Linux (wiki)

Solution 1+6

How do i delay the boot, or get it to wait for the network to be ready before starting kodi?