mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
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.
This commit is contained in:
parent
5583bf2285
commit
abf609d0f5
@ -10,6 +10,7 @@ Type=dbus
|
||||
BusName=net.connman
|
||||
Restart=on-failure
|
||||
EnvironmentFile=-/run/openelec/debug/connman.conf
|
||||
ExecStartPre=-/bin/sh -c "echo -e 'nameserver 8.8.8.8\nnameserver 8.8.4.4' > /etc/resolv.conf"
|
||||
ExecStartPre=-/bin/sh -c "cat /storage/.cache/hostname > /proc/sys/kernel/hostname"
|
||||
ExecStartPre=-/bin/sh -c "cat /storage/.config/hosts.conf > /etc/hosts"
|
||||
ExecStartPre=/sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0 up
|
||||
|
Loading…
x
Reference in New Issue
Block a user