disable network online services when using kernel ip configuration

Also drop Requisite on connman.service as it's not really needed
(connman and network online services all have conditions on
!/dev/.kernel_ipconfig) and it causes a dependency failed message
as Requisites are evaluated before conditions.

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2019-10-08 16:51:47 +02:00
parent 4f5fee7653
commit 97e2c5204c
2 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
[Unit]
Description=Wait on network
Requisite=connman.service
After=connman.service
Before=network-online.target
DefaultDependencies=no
Conflicts=shutdown.target
ConditionPathExists=/storage/.cache/libreelec/network_wait
ConditionPathExists=!/dev/.kernel_ipconfig
[Service]
Type=oneshot

View File

@ -1,10 +1,10 @@
[Unit]
Description=Wait for network to be configured by ConnMan
Requisite=connman.service
After=connman.service
Before=network-online.target
DefaultDependencies=no
Conflicts=shutdown.target
ConditionPathExists=!/dev/.kernel_ipconfig
[Service]
Type=oneshot