xbmc: respect $WAIT_NETWORK_TIME while waiting on network

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-16 22:41:32 +02:00
parent cc2f8eb7ec
commit 94d6d535c7

View File

@ -8,8 +8,9 @@ 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
EnvironmentFile=/storage/.cache/openelec/network_wait
ExecStartPre=/bin/sh -c 'echo "waiting on Network to come online ... (max. $WAIT_NETWORK_TIME sec.)"
ExecStart=/usr/bin/cm-online --timeout=${WAIT_NETWORK_TIME}
StandardOutput=tty
[Install]