Skip to content

Commit

Permalink
[PATCH] sensord-daemon-conf-setup: improve check for libhybrissensorfw
Browse files Browse the repository at this point in the history
More solid approach to check for libhybrissensorfw*.so since it might
not always be in /usr/lib (like on LuneOS for example).

Signed-off-by: Nikolay Nizov <nizovn@gmail.com>
Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
  • Loading branch information
Herrie82 committed Feb 18, 2018
1 parent bcdff5b commit bd5fc0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/sensord-daemon-conf-setup
Expand Up @@ -6,7 +6,7 @@

cd /etc/sensorfw/
if [ -x /usr/sbin/sensorfwd ]; then
if [ -f /usr/lib/libhybrissensorfw*.so ]; then
if ldconfig -p | grep libhybrissensorfw ; then
# Always prefer hybris sensor backend to anything else (also overwrite
# old setting, as sometimes the boardname matches, e.g. on grouper)
if [ "$(readlink primaryuse.conf)" != sensord-hybris.conf ]; then
Expand Down

0 comments on commit bd5fc0f

Please sign in to comment.