spec: enable WiFi by default ( Bug-Tizen: #TZPC-2019 ) submit/devel/20130422.155849
authorPhilippe Coval <philippe.coval@eurogiciel.fr>
Mon, 22 Apr 2013 15:58:20 +0000 (17:58 +0200)
committerPhilippe Coval <philippe.coval@eurogiciel.fr>
Mon, 22 Apr 2013 15:58:20 +0000 (17:58 +0200)
packaging/connman.spec

index d5e6d6f..078dfbf 100644 (file)
@@ -1,6 +1,6 @@
 Name:           connman
 Version:        1.12
-Release:        1
+Release:        0
 License:        GPL-2.0
 Summary:        Connection Manager
 Url:            http://connman.net
@@ -88,6 +88,9 @@ ln -s ../connman.service %{buildroot}%{_unitdir}/network.target.wants/connman.se
 %{_unitdir}/network.target.wants/connman.service
 %{_unitdir}/multi-user.target.wants/connman.service
 
+%post
+conf=/var/lib/connman/settings
+[ -r $conf ] || printf '[WiFi]\nEnable=True\n' > $conf
 
 %files test
 %{_libdir}/%{name}/test/*
@@ -101,5 +104,3 @@ ln -s ../connman.service %{buildroot}%{_unitdir}/network.target.wants/connman.se
 %{_libdir}/connman/plugins-vpn/openconnect.so
 %{_libdir}/connman/scripts/openconnect-script
 %{_datadir}/dbus-1/system-services/net.connman.vpn.service
-
-%changelog