/usr/sbin/fancontrol: line 492: [: too many arguments

Bug #1405784 reported by Mac_Weber
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lm-sensors-3 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Package: fancontrol
Version: 1:3.3.5-2

Package: lm-sensors
Version: 1:3.3.5-2

fancontrol floods syslog with error messages. Related bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=727731

grep fancontrol /var/log/syslog | tail
Oct 25 16:21:48 alice fancontrol[2057]: /usr/sbin/fancontrol: line 492: [: too many arguments

How to fix:
Change line 492 to:

if [ "${pwmpval} -eq 0 -o ${min_fanval} -eq 0" ]

Tags: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lm-sensors-3 (Ubuntu):
status: New → Confirmed
Revision history for this message
Boris Gjenero (boris-gjenero) wrote :

This also affects me in vivid. The problem is that min_fanval wasn't set. Up above it is set inside an
"if [[ -n ${fan} ]]" block, so it's not set if you're not using fan RPM sensors. This was fixed in r6255: http://lm-sensors.org/changeset/6255

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.