Skip to content

Commit

Permalink
[sensorfw] detect N9/N950 properly
Browse files Browse the repository at this point in the history
  • Loading branch information
filippz committed Dec 24, 2014
1 parent 855db77 commit b0708ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rpm/sensord-daemon-conf-setup
Expand Up @@ -19,6 +19,11 @@ if [ -x /usr/sbin/sensord ]; then
for f in sensord-*.conf; do
fbase="${f#sensord-}"
if grep -q "${fbase%.conf}" /etc/boardname; then
# N9/N950 (RM-696/RM-680) boardname containts rm_680 for both
# use /proc/1/environ to tell them apart
if [ "$f" = "sensord-rm_680.conf" ] && grep -q 'RM-696' /proc/1/environ; then
f="sensord-rm_696.conf"
fi
ln -s $f primaryuse.conf
break
fi
Expand Down

0 comments on commit b0708ba

Please sign in to comment.