Search
SailfishOS Open Build Service
>
Projects
>
home:siteshwar
:
hw
:
hammerhead
>
sensorfw-qt5-hybris
> _service:tar_git:sensord-daemon-conf-setup
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:sensord-daemon-conf-setup of Package sensorfw-qt5-hybris
#!/bin/bash if [ -x "/usr/sbin/sensord" ] ; then if [ ! -f "/etc/sensorfw/primaryuse.conf" ] ; then # If hybrissensorfw lib is found, use that if [ -f /usr/lib/libhybrissensorfw*.so ]; then ln -s sensord-hybris.conf /etc/sensorfw/primaryuse.conf else # Determine the correct "primary" config file: the first conf file # whose basename is a substring of boardname, if any (i.e. 'foo.conf' # matches all devices which have 'foo' in their /etc/boardname) if [ -f /etc/boardname ]; then for f in /etc/sensorfw/*conf; do fbase=`basename $f '.conf' | sed s/sensord-//` grep -q $fbase /etc/boardname if [ $? -eq 0 ]; then ln -s $f /etc/sensorfw/primaryuse.conf break fi done fi fi fi fi