Removed instructions for using -t flag
Moved check_requirements function from main to mbpfan
Moved daemonize and verbose globals from main to daemon
Moved strings for program information from main to global.h
Moved strings for coretemp and applesmc paths from main to mbpfan.c
Updated Makefile
Turned on verboseness for testing
Previously the fopen write mode caused the call to spuriously report
newer sensors. Now we check the newer sensors path explicitly. Also
plug file descriptor leak and more carefully check return values.
There were 3 sections giving advice on how to set up systemd. Removed
2 of them.
The first one under the Ubuntu header was incomplete, it didn't start
the service immediately. The 3rd one was already mentioned in the 2nd
section.
I added a table of contents for easy navigation, added the directions you provided me on figuring out if my system has applesmc/coretemp installed, I added my Macbook to tested devices, and I added Solus to supported operating systems.
modified: README.md
Changed instructions for how to use Clang. It is much easier
since the Makefile now just uses the system's compiler, and
correctly uses C instead of C++
sudo dmidecode -s system-product-name
Macmini5,3
uname -a
Linux elementaty-mini 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
sudo make tests
make install
make[1]: Entering directory '/home/wmoore/Source/mbpfan'
make
make[2]: Entering directory '/home/wmoore/Source/mbpfan'
Linking...
g++ -g -lm src/settings.o src/daemon.o src/mbpfan.o src/main.o src/minunit.o src/strmap.o -lm -o bin/mbpfan
make[2]: Leaving directory '/home/wmoore/Source/mbpfan'
install -d /usr/sbin
install -d /etc
install -d /lib/systemd/system
install -d /usr/share/doc/mbpfan
install bin/mbpfan /usr/sbin
install -m644 mbpfan.conf /etc
install -m644 README.md /usr/share/doc/mbpfan
install -d /usr/share/man/man8
install -m644 mbpfan.8.gz /usr/share/man/man8
******************
INSTALL COMPLETED
******************
A configuration file has been copied (might overwrite existing file) to /etc/mbpfan.conf.
See README.md file to have mbpfan automatically started at system boot.
Please run the tests now with the command
sudo make tests
make[1]: Leaving directory '/home/wmoore/Source/mbpfan'
/usr/sbin/mbpfan -f -v -t
Starting the tests..
It is normal for them to take a bit to finish.
Detected kernel version: 4
Detected kernel minor revision: 4
Detected kernel version: 4
Detected kernel minor revision: 4
Using new sensor path for kernel >= 3.0.15
Found hwmon path at /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp
Found 5 sensors
Found 1 fans
Detected kernel version: 4
Detected kernel minor revision: 4
Using new sensor path for kernel >= 3.0.15
Found hwmon path at /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp
Found 5 sensors
Testing the _supplied_ mbpfan.conf (not the one you are using)..
ALL TESTS PASSED
Tests run: 8