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:
Stefan Saraev 2015-07-19 14:13:24 +03:00
parent 5583bf2285
commit abf609d0f5

View File

@ -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