summaryrefslogtreecommitdiff
path: root/recipes-connectivity/connman
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2016-12-30 15:39:27 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2017-01-11 20:18:11 +0100
commitdc4caf1f337ea524a786a7c956af71e3934fe4c1 (patch)
tree4a706d38f0173076a7336ca2e482fbe69a18d3e3 /recipes-connectivity/connman
parent5accc6912302a3a81e5c5f66953cc3c0039de063 (diff)
connman: patch main.conf rather than providing it in full
The connman sources provide main.conf with all settings set to default. Patch that file rather than providing the file in full from a maybe outdated connman version. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'recipes-connectivity/connman')
-rw-r--r--recipes-connectivity/connman/connman/0002-main.conf-blacklist-rndis-nic-s.patch28
-rw-r--r--recipes-connectivity/connman/connman/main.conf97
-rw-r--r--recipes-connectivity/connman/connman_%.bbappend6
3 files changed, 31 insertions, 100 deletions
diff --git a/recipes-connectivity/connman/connman/0002-main.conf-blacklist-rndis-nic-s.patch b/recipes-connectivity/connman/connman/0002-main.conf-blacklist-rndis-nic-s.patch
new file mode 100644
index 0000000..e435ac0
--- /dev/null
+++ b/recipes-connectivity/connman/connman/0002-main.conf-blacklist-rndis-nic-s.patch
@@ -0,0 +1,28 @@
+From 7e374263fe2b0cb884b94849d7def3893175beb0 Mon Sep 17 00:00:00 2001
+From: Max Krummenacher <max.krummenacher@toradex.com>
+Date: Fri, 30 Dec 2016 13:41:47 +0100
+Subject: [PATCH 2/3] main.conf: blacklist rndis nic's
+
+We want them handled by systemd's networkd.
+
+Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
+---
+ src/main.conf | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/main.conf b/src/main.conf
+index acceda3..68528d9 100644
+--- a/src/main.conf
++++ b/src/main.conf
+@@ -58,7 +58,7 @@
+ # not be handled by connman, if their first characters
+ # match any of the list entries. Default value is
+ # vmnet,vboxnet,virbr,ifb,ve-,vb-.
+-# NetworkInterfaceBlacklist = vmnet,vboxnet,virbr,ifb,ve-,vb-
++NetworkInterfaceBlacklist = vmnet,vboxnet,virbr,ifb,ve-,vb-,usb,rndis
+
+ # Allow connman to change the system hostname. This can
+ # happen for example if we receive DHCP hostname option.
+--
+2.6.6
+
diff --git a/recipes-connectivity/connman/connman/main.conf b/recipes-connectivity/connman/connman/main.conf
deleted file mode 100644
index 950053b..0000000
--- a/recipes-connectivity/connman/connman/main.conf
+++ /dev/null
@@ -1,97 +0,0 @@
-[General]
-
-# Set input request timeout. Default is 120 seconds
-# The request for inputs like passphrase will timeout
-# after certain amount of time. Use this setting to
-# increase the value in case of different user
-# interface designs.
-# InputRequestTimeout = 120
-
-# Set browser launch timeout. Default is 300 seconds
-# The request for launching a browser for portal pages
-# will timeout after certain amount of time. Use this
-# setting to increase the value in case of different
-# user interface designs.
-# BrowserLaunchTimeout = 300
-
-# Enable background scanning. Default is true.
-# Background scanning will start every 5 minutes unless
-# the scan list is empty. In that case, a simple backoff
-# mechanism starting from 10s up to 5 minutes will run.
-# BackgroundScanning = true
-
-# List of Fallback timeservers separated by ",".
-# These timeservers are used for NTP sync when there are
-# no timeserver set by the user or by the service.
-# These can contain mixed combination of fully qualified
-# domain names, IPv4 and IPv6 addresses.
-# FallbackTimeservers =
-
-# List of fallback nameservers separated by "," used if no
-# nameservers are otherwise provided by the service. The
-# nameserver entries must be in numeric format, host
-# names are ignored.
-# FallbackNameservers =
-
-# List of technologies that are marked autoconnectable
-# by default, separated by commas ",". The default value
-# for this entry when empty is ethernet,wifi,cellular.
-# Services that are automatically connected must have been
-# set up and saved to storage beforehand.
-# DefaultAutoConnectTechnologies =
-
-# List of preferred technologies from the most preferred
-# one to the least preferred one separated by commas ",".
-# Services of the listed technology type will be tried one
-# by one in the order given, until one of them gets connected
-# or they are all tried. A service of a preferred technology
-# type in state 'ready' will get the default route when
-# compared to another preferred type further down the list
-# with state 'ready' or with a non-preferred type; a service
-# of a preferred technology type in state 'online' will get
-# the default route when compared to either a non-preferred
-# type or a preferred type further down in the list.
-# PreferredTechnologies =
-
-# List of blacklisted network interfaces separated by ",".
-# Found interfaces will be compared to the list and will
-# not be handled by connman, if their first characters
-# match any of the list entries. Default value is
-# vmnet,vboxnet,virbr,ifb.
-NetworkInterfaceBlacklist = vmnet,vboxnet,virbr,ifb,usb,rndis
-
-# Allow connman to change the system hostname. This can
-# happen for example if we receive DHCP hostname option.
-# Default value is true.
-# AllowHostnameUpdates = true
-
-# Keep only a single connected technology at any time. When a new
-# service is connected by the user or a better one is found according
-# to PreferredTechnologies, the new service is kept connected and all
-# the other previously connected services are disconnected. With this
-# setting it does not matter whether the previously connected services
-# are in 'online' or 'ready' states, the newly connected service is
-# the only one that will be kept connected. A service connected by the
-# user will be used until going out of network coverage. With this
-# setting enabled applications will notice more network breaks than
-# normal. Default value is false.
-# SingleConnectedTechnology = false
-
-# List of technologies for which tethering is allowed separated by ",".
-# The default value is wifi,bluetooth,gadget. Only those technologies
-# listed here are used for tethering. If ethernet tethering is desired,
-# then ethernet should be added to the list. The technologies listed here
-# have to support tethering, currently tethering is implemented for wifi,
-# bluetooth, gadget and ethernet.
-# NOTE that if ethernet tethering is enabled, then a DHCP server is
-# started on all ethernet interfaces. Tethered ethernet should
-# never be connected to corporate or home network as it will disrupt
-# normal operation of these networks. Due to this ethernet is not
-# tethered by default. Do not activate ethernet tethering unless you
-# really know what you are doing.
-# TetheringTechnologies = wifi,bluetooth,gadget
-
-# Restore earlier tethering status when returning from offline mode,
-# re-enabling a technology, and after restarts and reboots.
-# Default value is false.
-# PersistentTetheringMode = false
diff --git a/recipes-connectivity/connman/connman_%.bbappend b/recipes-connectivity/connman/connman_%.bbappend
index 0ca9cb8..d90d435 100644
--- a/recipes-connectivity/connman/connman_%.bbappend
+++ b/recipes-connectivity/connman/connman_%.bbappend
@@ -2,10 +2,10 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/connman:"
SRC_URI += " \
file://0001-connman.service.in-don-t-start-if-nfs-boot.patch \
- file://main.conf \
+ file://0002-main.conf-blacklist-rndis-nic-s.patch \
"
do_install_append() {
- install -d ${D}${sysconfdir}/connman/
- install -m 0644 ${WORKDIR}/main.conf ${D}${sysconfdir}/connman/
+ install -d ${D}${sysconfdir}/connman/
+ install -m 0644 ${S}/src/main.conf ${D}${sysconfdir}/connman/
}