Red Hat Bugzilla – Bug 321381
fancontrol shell script syntax error
Last modified: 2015-03-04 20:19:25 EST
Description of problem:
Bash detects a syntax error in the fancontrol script. This means it will
probably not run correctly.
sh -n /usr/sbin/fancontrol
/usr/sbin/fancontrol: line 334: syntax error near unexpected token `<'
/usr/sbin/fancontrol: line 334: ` read < <(exec sleep 1)'
I think the read command needs a variable to receive the input being sent to it.
There is another one like this at line 372. I am rating this high severity since
a malfunctioning fan can cause the system to shutdown.
Version-Release number of selected component (if applicable):
F7 has the same problem.
Well, then you shouldn't start it with sh but with bash:
[hans@localhost ~]$ cat /usr/sbin/fancontrol | head -n 1
Closing as works for me.