Add init script functionality to create a symlink by default from
[/var]/run/connman/resolv.conf to /etc/resolv.conf.
---
 scripts/connman.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/connman.in b/scripts/connman.in
index 1692b95..9cc5895 100644
--- a/scripts/connman.in
+++ b/scripts/connman.in
@@ -9,6 +9,10 @@ if [ -f @sysconfdir@/default/connman ] ; then
        . @sysconfdir@/default/connman
 fi
 
+if [ "HANDLE_RESOLVCONF" != "no" ] ; then
+    ln -sf @runstatedir@/connman/resolv.conf /etc/
+fi
+
 set -e
 
 do_start() {
-- 
2.1.4

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to