mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
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
This commit is contained in:
parent
60fdca9ff4
commit
e2efb47b2b
@ -11,6 +11,7 @@ BusName=net.connman
|
|||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
EnvironmentFile=-/run/openelec/debug/connman.conf
|
EnvironmentFile=-/run/openelec/debug/connman.conf
|
||||||
ExecStartPre=-/bin/sh -c "cat /storage/.cache/hostname > /proc/sys/kernel/hostname"
|
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
|
ExecStartPre=/sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0 up
|
||||||
ExecStart=/bin/sh -c ". /usr/lib/connman/connman-setup; exec /usr/sbin/connmand -nr $CONNMAN_MAIN $CONNMAN_DEBUG"
|
ExecStart=/bin/sh -c ". /usr/lib/connman/connman-setup; exec /usr/sbin/connmand -nr $CONNMAN_MAIN $CONNMAN_DEBUG"
|
||||||
# send SIGKILL on stop to keep ip configuration
|
# send SIGKILL on stop to keep ip configuration
|
||||||
|
@ -16,5 +16,6 @@
|
|||||||
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
d /var/cache 0755 root root - -
|
||||||
d /run/connman 0755 root root - -
|
d /run/connman 0755 root root - -
|
||||||
d /storage/.cache/connman 0755 root root - -
|
d /storage/.cache/connman 0755 root root - -
|
||||||
|
Loading…
x
Reference in New Issue
Block a user