diff options
-rw-r--r-- | packaging/connman.spec | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/packaging/connman.spec b/packaging/connman.spec index 3d3fa132..5e6e1266 100644 --- a/packaging/connman.spec +++ b/packaging/connman.spec @@ -82,10 +82,17 @@ ln -s ../connman.service %{buildroot}%{_unitdir}/network.target.wants/connman.se %post -d=/var/lib/%{name} -f=$d/settings -install -d $d -[ -r $f ] || printf '[WiFi]\nEnable=true\n' > $f +d="/var/lib/%{name}" +f="$d/settings" +install -d "$d" +[ -r $f ] || cat<<EOF > "$f" +[WiFi] +Enable=true + +[Bluetooth] +Enable=true + +EOF %postun rm -f /var/lib/connman/settings |