autostart.sh is depending on network-online.target but you have to adjust Wait for network before starting Kodi in LE-Settins addon from the initial short 10 seconds to your needs.
Log messages of autostart.sh can be viewed with journalctl -u kodi-autostart. The status of "Wait for network" is visible with systemctl status kodi-waitonnetwork