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>
11 lines
284 B
Plaintext
11 lines
284 B
Plaintext
# hosts.conf
|
|
|
|
# This configuration file allows you to manually map hostnames to
|
|
# IP addresses
|
|
|
|
# Format: <ipaddress> <hostname1> <hostname2>
|
|
# Example: 192.168.0.3 libreelec libreelec.mynetwork
|
|
|
|
# NOTE: do not edit /etc/hosts directly
|
|
# edit /storage/.config/hosts.conf then reboot
|