Commit graph

28 commits

Author SHA1 Message Date
chewitt
9d3e018f27 connman: add support for WireGuard 2020-01-24 02:47:50 +00:00
Matthias Reichl
886bb0164a 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>
2019-11-15 18:54:04 +01:00
Matthias Reichl
4b262d4612 connman: disable service if ip configuration is used
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-15 18:54:04 +01:00
Matthias Reichl
1dfbcbd8b4 connman: move host and resolver configuration to separate service
Setup system hostname, /etc/resolv.conf and /etc/hosts in a service
that can be run independently of connman.

The volatile etc files are created in /run/libreelec instead of
/run/connman so they can be modified similarily to standard linux
installations with a writable /etc. Connman can then hook into
that and move resolv.conf management to /run/connman/resolv.conf when
it's started.

If kernel IP configuration is used the resolv info from the kernel
will be used to create resolv.conf. Users can also provide their
own resolv.conf file in /storage/.config/resolv.conf which takes
precedence over ther kernel info. If no resolv.conf info is present
a fallback with use the Google nameservers is created (as before).

Loopback network interface setup has been removed, this is already
set up by systemd.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-15 18:54:04 +01:00
Lukas Rusak
40af353132 rebrand: LibreELEC 2016-03-12 01:41:55 +01:00
Lukas Rusak
9d77b4a71c connman: adjust connman.service to allow clean shutdown 2016-02-03 11:30:00 +01:00
Lukas Rusak
356f21bfa3 connman: use connmand-wait-online and rework service dependencies 2016-02-03 11:29:57 +01:00
Stefan Saraev
abf609d0f5 connman: make sure we have fallback namesrvers in resolv.conf
this fixes a very uncommon, edge case bug, if a user has
ipv4method=static but no nameservers set for a service - connman
may not store fallbacks to resolv.conf first time the user saves
connection properties via OE settings addon.
2015-07-19 21:03:37 +03:00
Stefan Saraev
e2efb47b2b connman: /etc/hosts should be available early
because service.openelec.settings does it a bit
late, so kodi fails to find stuff that is added
to /storage/.config/hosts.conf
2015-01-20 23:30:42 +02:00
Stefan Saraev
343eab7914 connman: dont depend on debugconfig.service 2015-01-18 18:02:56 +02:00
Stefan Saraev
83e79ce766 connman: remove vpn support 2015-01-11 16:51:01 +02:00
Stephan Raue
2414ed0564 connman: typo
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-08-26 19:29:47 +02:00
Stefan Saraev
3f59597c92 connman: meh hostname 2014-08-17 23:26:38 +03:00
Stefan Saraev
84d226bb5a connman: merge loopback.service into connman.service 2014-08-15 15:43:55 +02:00
Stefan Saraev
281c2366bb connman: merge hostname.service into connman.service 2014-08-15 15:42:27 +02:00
Stephan Raue
f1e74d2ebb Merge pull request #3189 from chewitt/custom_connman
connman: allow user editable main.conf
2014-07-07 22:56:32 +02:00
Stephan Raue
7d54310c05 connman: Require dbus.socket instead of syslog.target in systemd unit files, see also http://git.kernel.org/cgit/network/connman/connman.git/commit/?id=cfa24d924a0fe046d65120f21b480313b45e196b
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-05-31 18:12:52 +02:00
Christian Hewitt
b74368c3bd connman: allow user editable main.conf
In recent months I have seen a number of cases where users need to
change ‘prefer ethernet’ to ‘prefer wifi’ or where users are trying to
enable tethering for ethernet or are running other daemons that add
network interfaces that should not be auto-managed by comman. All of
these require user editing of main.conf so this change moves main.conf
to /storage where it can be tweaked under-the-hood if needed.
2014-05-13 00:51:27 +04:00
Stefan Saraev
fb20099755 connman: loopback.service: remove ExecStartPre.. 2014-04-22 13:31:50 +02:00
Giuseppe Castagno
6d6dd01d67 Fix network-online.service: the '--timeout' switch is no longer necessary, only the number of seconds is needed (see d21cafecef) 2013-12-23 15:43:48 +02:00
Stefan Saraev
46fa31303c connman: try restarting forever on crash. on 2s interval 2013-11-24 00:35:33 +02:00
Stefan Saraev
bad26d6da0 connman: stop by SIGKILL
or connman may clear current ip configuration on shutdown
before nfs-mounted /storage is umounted
2013-10-19 17:37:44 +03:00
Stephan Raue
bf55fa7580 connman: rework debugmode service
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-18 14:14:10 +02:00
Stephan Raue
36781c02bc connman: rework systemd service files, connman-vpn will be started byself, set loopback device early, create default config on first startup if not exist
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-17 22:04:36 +02:00
Stephan Raue
6934001ed7 connman: add cm-online script to wait on network, add network check servicefile
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-16 21:27:18 +02:00
Stephan Raue
bf20f799d4 connman: cosmetics
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-16 21:25:04 +02:00
Stephan Raue
97cc8cbd7b connman: use own systemd service scripts to provide network.target target where services can depend on
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-16 13:19:18 +02:00
Stephan Raue
682041952d connman: port hostname setup to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-05 20:08:26 +02:00