kodi-waitonnetwork: enabled by default with 10s

This commit is contained in:
mglae 2020-12-26 18:51:11 +01:00
parent 5cee06d72b
commit 50926608a5
3 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,3 @@
WAIT_NETWORK="true"
WAIT_NETWORK_TIME="10"
WAIT_NETWORK_DEFAULT="true"

View File

@ -315,6 +315,9 @@ post_makeinstall_target() {
$PROJECT_DIR/$PROJECT/devices/$DEVICE/kodi/appliance.xml \
> $INSTALL/usr/share/kodi/system/settings/appliance.xml
mkdir -p $INSTALL/usr/cache/libreelec
cp $PKG_DIR/config/network_wait $INSTALL/usr/cache/libreelec
# update addon manifest
ADDON_MANIFEST=$INSTALL/usr/share/kodi/system/addon-manifest.xml
xmlstarlet ed -L -d "/addons/addon[text()='service.xbmc.versioncheck']" $ADDON_MANIFEST

View File

@ -4,8 +4,9 @@ After=connman.service
Before=network-online.target
DefaultDependencies=no
Conflicts=shutdown.target
ConditionPathExists=/storage/.cache/libreelec/network_wait
ConditionFileNotEmpty=/storage/.cache/libreelec/network_wait
ConditionPathExists=!/dev/.kernel_ipconfig
ConditionPathExists=/storage/.kodi/userdata/addon_data/service.libreelec.settings/oe_settings.xml
[Service]
Type=oneshot