xbmc: add service file to optionally wait for network

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-16 21:27:52 +02:00
parent 6934001ed7
commit cc2f8eb7ec
2 changed files with 17 additions and 0 deletions

View File

@ -545,6 +545,7 @@ post_install() {
enable_service xbmc-poweroff.service
enable_service xbmc-reboot.service
enable_service xbmc-userfonts.service
enable_service xbmc-waitonnetwork.service
enable_service xbmc.service
enable_service xbmc-lcd-suspend.service
enable_service xbmc-lirc-suspend.service

View File

@ -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