Commit graph

17 commits

Author SHA1 Message Date
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
CvH
f668a67654 spdx: packages/network 2018-07-18 20:45:17 +02:00
Lukas Rusak
356f21bfa3 connman: use connmand-wait-online and rework service dependencies 2016-02-03 11:29:57 +01:00
Stefan Saraev
d6e8b3195b Revert "connman: remove support to create initial setting"
This reverts commit debb37a12f.

debb37a broke wifi in wizard / first run. as it doesnt seem to
be intentional, reverting.
2015-04-19 18:09:05 +03:00
Stefan Saraev
0ecef501bd cm-online: cosmetics 2015-01-18 13:19:19 +02:00
Stephan Raue
debb37a12f connman: remove support to create initial setting
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-08-24 02:53:13 +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
Stephan Raue
0f3e2d4ffa update license headers
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-12-21 21:51:48 +01:00
Stefan Saraev
d21cafecef keep waitonnetwork service damn simple
- an exit status is not needed here. we do not care if network is not up
  in the specified interval. it is up to the user to tune it
- VERBOSE is not used.
2013-12-16 22:07:32 +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
3ba77ca650 connman: remove not more working 'cmcc' script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-08-02 02:14:00 +02:00
Stephan Raue
d0eccb9545 connman: update cmcc script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2011-07-28 20:53:57 +02:00
Stephan Raue
9ca1546755 connman: update cmcc script to 0.3.0
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2010-12-01 04:48:22 +01:00
Stephan Raue
be7a048439 connman: add 'cmcc' script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2010-09-26 20:48:52 +02:00
Stephan Raue
3eaa331a4f connman: rework network config and init script again
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2010-09-25 22:20:04 +02:00
Stephan Raue
2f3c769a61 connman: include standalone cmcc script, add init script and config from 'indicator-network' package
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2010-09-23 13:11:55 +02:00