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>
%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
%{_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
--- /dev/null
+
+[global]
+OfflineMode=false
+
+[WiFi]
+Enable=false
+
+[Bluetooth]
+Enable=true
+
+[Wired]
+Enable=true
+
+[Cellular]
+Enable=true