Add settings file 62/36562/1 accepted/tizen/common/20150310.094524 accepted/tizen/mobile/20150310.122132 accepted/tizen/tv/20150310.113221 accepted/tizen/wearable/20150310.114525 submit/tizen/20150310.061003
authorSeonah Moon <seonah1.moon@samsung.com>
Tue, 10 Mar 2015 05:25:59 +0000 (14:25 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Tue, 10 Mar 2015 05:33:23 +0000 (14:33 +0900)
Bluetooth is off when BT is aready enable.
It is because persistent_enable is false.
Connman daemon checks persistent_enable in /var/lib/connman/settings.
So settings file is added to enable persistent_enable.

Change-Id: I8526bb1227841a6b9f5d43777cdd0688d02b9131
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
packaging/connman.spec
resources/var/lib/connman/settings [new file with mode: 0644]

index 071b410..830977e 100644 (file)
@@ -118,6 +118,9 @@ install -m644 %{SOURCE11} %{buildroot}%{_unitdir}
 %install_service multi-user.target.wants connman-ntp.service
 %endif
 
+mkdir -p %{buildroot}%{_localstatedir}/lib/connman
+cp resources/var/lib/connman/settings %{buildroot}%{_localstatedir}/lib/connman/settings
+
 mkdir -p %{buildroot}%{_sysconfdir}/connman
 cp src/main.conf %{buildroot}%{_sysconfdir}/connman/main.conf
 
@@ -151,6 +154,7 @@ systemctl daemon-reload
 %{_sbindir}/*
 %{_libdir}/connman/plugins/*.so
 %{_datadir}/man/*
+%attr(600,root,root) %{_localstatedir}/lib/connman/settings
 %config %{_sysconfdir}/connman/main.conf
 %config %{_sysconfdir}/dbus-1/system.d/*
 %{_unitdir}/connman.service
diff --git a/resources/var/lib/connman/settings b/resources/var/lib/connman/settings
new file mode 100644 (file)
index 0000000..ba476b5
--- /dev/null
@@ -0,0 +1,15 @@
+
+[global]
+OfflineMode=false
+
+[WiFi]
+Enable=false
+
+[Bluetooth]
+Enable=true
+
+[Wired]
+Enable=true
+
+[Cellular]
+Enable=true