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:
Stefan Saraev 2015-01-20 23:06:54 +02:00
parent 60fdca9ff4
commit e2efb47b2b
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ BusName=net.connman
Restart=on-failure
EnvironmentFile=-/run/openelec/debug/connman.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
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

View File

@ -16,5 +16,6 @@
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
d /var/cache 0755 root root - -
d /run/connman 0755 root root - -
d /storage/.cache/connman 0755 root root - -