summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/neard.spec4
-rw-r--r--src/main.conf2
2 files changed, 5 insertions, 1 deletions
diff --git a/packaging/neard.spec b/packaging/neard.spec
index 054e57b..9fb25ec 100644
--- a/packaging/neard.spec
+++ b/packaging/neard.spec
@@ -68,6 +68,9 @@ install -d %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/
ln -s ../neard.service %{buildroot}%{_libdir}/systemd/system/network.target.wants/neard.service
ln -s ../neard.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/neard.service
+mkdir -p %{buildroot}%{_sysconfdir}/neard
+cp src/main.conf %{buildroot}%{_sysconfdir}/neard/main.conf
+
%post
systemctl daemon-reload
systemctl restart neard.service
@@ -83,6 +86,7 @@ systemctl daemon-reload
%license COPYING
%{_mandir}/man*/*
%{_libexecdir}/nfc/neard
+%config %{_sysconfdir}/neard/main.conf
%config %{_sysconfdir}/dbus-1/system.d/org.neard.conf
%{_libdir}/systemd/system/neard.service
%{_libdir}/systemd/system/network.target.wants/neard.service
diff --git a/src/main.conf b/src/main.conf
index ccaa871..6ebfb5f 100644
--- a/src/main.conf
+++ b/src/main.conf
@@ -4,7 +4,7 @@
# Constant polling will automatically trigger a new
# polling loop whenever a tag or a device is no longer
# in the RF field.
-ConstantPoll = true
+ConstantPoll = false
# Automatically turn an adapter on when being discovered.
# Default value is false.