Set ConnMan default settings in config files
authorZhang zhengguang <zhengguang.zhang@intel.com>
Fri, 4 Jul 2014 06:49:18 +0000 (14:49 +0800)
committerZhang zhengguang <zhengguang.zhang@intel.com>
Thu, 17 Jul 2014 05:01:05 +0000 (13:01 +0800)
src/connman.service.in
src/main.conf

index 7b6195e..67d051d 100644 (file)
@@ -5,10 +5,11 @@ After=dbus.socket
 Before=remote-fs.target
 
 [Service]
+EnvironmentFile=-/etc/sysconfig/connman
 Type=dbus
 BusName=net.connman
 Restart=on-failure
-ExecStart=@prefix@/sbin/connmand -n
+ExecStart=@prefix@/sbin/connmand -n $OPTIONS
 StandardOutput=null
 
 [Install]
index 93c7a50..c979553 100644 (file)
@@ -19,6 +19,7 @@
 # the scan list is empty. In that case, a simple backoff
 # mechanism starting from 10s up to 5 minutes will run.
 # BackgroundScanning = true
+BackgroundScanning = false
 
 # List of Fallback timeservers separated by ",".
 # These timeservers are used for NTP sync when there are
@@ -26,6 +27,7 @@
 # These can contain mixed combination of fully qualified
 # domain names, IPv4 and IPv6 addresses.
 # FallbackTimeservers =
+FallbackTimeservers = pool.ntp.org
 
 # List of fallback nameservers separated by "," used if no
 # nameservers are otherwise provided by the service. The
@@ -52,6 +54,7 @@
 # the default route when compared to either a non-preferred
 # type or a preferred type further down in the list.
 # PreferredTechnologies =
+PreferredTechnologies = ethernet,wifi
 
 # List of blacklisted network interfaces separated by ",".
 # Found interfaces will be compared to the list and will
@@ -59,6 +62,7 @@
 # match any of the list entries. Default value is
 # vmnet,vboxnet,virbr,ifb.
 # NetworkInterfaceBlacklist = vmnet,vboxnet,virbr,ifb
+NetworkInterfaceBlacklist = vmnet,vboxnet,virbr
 
 # Allow connman to change the system hostname. This can
 # happen for example if we receive DHCP hostname option.