mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-03 16:07:51 +00:00
xbmc: add service file to optionally wait for network
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
6934001ed7
commit
cc2f8eb7ec
@ -545,6 +545,7 @@ post_install() {
|
|||||||
enable_service xbmc-poweroff.service
|
enable_service xbmc-poweroff.service
|
||||||
enable_service xbmc-reboot.service
|
enable_service xbmc-reboot.service
|
||||||
enable_service xbmc-userfonts.service
|
enable_service xbmc-userfonts.service
|
||||||
|
enable_service xbmc-waitonnetwork.service
|
||||||
enable_service xbmc.service
|
enable_service xbmc.service
|
||||||
enable_service xbmc-lcd-suspend.service
|
enable_service xbmc-lcd-suspend.service
|
||||||
enable_service xbmc-lirc-suspend.service
|
enable_service xbmc-lirc-suspend.service
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Wait on network
|
||||||
|
Requisite=connman.service
|
||||||
|
After=connman.service
|
||||||
|
Before=xorg-server.service framebuffer.service
|
||||||
|
|
||||||
|
ConditionPathExists=/storage/.cache/openelec/network_wait
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStartPre=/bin/sh -c 'echo "waiting on Network to come online ..."
|
||||||
|
ExecStart=/usr/bin/cm-online --timeout=30
|
||||||
|
StandardOutput=tty
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=xbmc.service
|
Loading…
x
Reference in New Issue
Block a user