2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-28 12:57:51 +00:00

94 Commits

Author SHA1 Message Date
Jean Delvare
55e8649c0d pwmconfig, fancontrol: Gracefully handle errors when writing to
sysfs files, as bash 3.1 otherwise displays them and this tends to
frighten the user.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4280 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-05 16:34:32 +00:00
Jean Delvare
5ff0a6b0e7 Use mktemp instead of tempfile to create the temporary config file.
We are already using mktemp elsewhere in the script, and it seems to be
more widely available than tempfile.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4153 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-07 15:56:11 +00:00
Rudolf Marek
74a7992f19 Transion to new website, part2 - move more links, fix the CVS->SVN
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4064 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-07-02 20:15:09 +00:00
Jean Delvare
28f8be1038 Drop all references to the old mailing list.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3075 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-08 16:29:41 +00:00
Rudolf Marek
8894546f1f Fix potentional security issue. Thanks to Javier Fernández-Sanguino Peña <jfs@computer.org>
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3060 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-20 19:45:53 +00:00
Jean Delvare
200758f450 Strip useless whitespace before new line at end of string.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3025 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-06-23 21:07:10 +00:00
Mark D. Studebaker
f7230a198e fix compile errors; patch from
Sergey Vlasov <vsu@altlinux.ru>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2988 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-05-04 21:12:08 +00:00
Mark D. Studebaker
57782cede2 fix handling of alternate config file name
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2930 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-15 19:24:25 +00:00
Mark D. Studebaker
78f5390e51 allow readonly pwmx_enable files (lm85 kernel 2.6)
tickets 1874, 1879


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2883 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-29 23:04:25 +00:00
Jean Delvare
220d136e06 New manual pages for fancontrol and pwmconfig, courtesy of
Aurelien Jarno.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2873 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-27 21:03:01 +00:00
Jean Delvare
a0a471c8c5 *** SECURITY FIX ***
Secure the creation of temporary files. Problem found by Javier
Fernandez-Sanguino Pena, patch by Aurelien Jarno.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2871 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-26 21:12:50 +00:00
Jean Delvare
cb64b74141 Handle both pwm files naming scheme for 2.6 kernels (ticket
#1844).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2798 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-20 22:00:10 +00:00
Jean Delvare
8d3f9bebd9 Sync with Dean.
"Appended to this message is the current version of the
fancontrol script that I am happily using.  It uses POSIX::_exit()
to avoid the double-call to the END block, plus it logs STDOUT and
STDERR to different logfiles."


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2606 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-06-23 18:34:24 +00:00
Jean Delvare
35f4d9595c Make sure restorefans is called only once. Suggested by James
Olin Oden.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2605 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-06-22 18:51:08 +00:00
Jean Delvare
e7e4c799da Implement "make user_uninstall". Original patch contributed by
Rudolf Marek.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2604 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-06-20 14:18:28 +00:00
Mark D. Studebaker
6927c8e1c5 (mds)
From: Dean Takemori <deant@hawaii.rr.com>
Add END {} block to restore fans on many kinds of errors/interrupts.
Remove arugment from restorefans


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2602 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-06-19 19:56:12 +00:00
Mark D. Studebaker
77dd1086a8 add fancontrol.pl
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2572 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-05-31 04:23:24 +00:00
Mark D. Studebaker
c86fb14b69 from Dean Takemori <deant@hawaii.rr.com>:
Still technically beta quality, but in my local testing it works equivalently to the /bin/sh
script provided in lm_sensors-2.7.6/prog/pwm but with the bonuses that
a) it doesn't need to spawn outside programs (sleep, grep etc)
b) it can daemonize itself, so it works better as a /etc/init.d script


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2571 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-05-31 04:19:24 +00:00
Marius Reiner
852268883d (mariusr) typo which caused problems with old sed versions
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2553 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-05-20 17:25:29 +00:00
Marius Reiner
93dfb6fa12 (mariusr) restorefans on TERM and KILL (submitted by Stephen Kitt)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2549 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-05-18 19:12:43 +00:00
Marius Reiner
654982ccf3 (mariusr) check the other mandatory settings, make FCFANS optional
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2546 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-05-18 13:59:59 +00:00
Jean Delvare
08091f09b2 Fix typo. Reported by Rutger Nijlunsing.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2520 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-05-09 17:27:55 +00:00
Jean Delvare
12e4bc4853 Follow new sysfs naming scheme.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2514 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-05-08 19:38:20 +00:00
Jean Delvare
f032b85a9d Use new sysfs file name conventions. Suggested by Rutger
Nijlunsing.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2510 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-05-08 11:33:47 +00:00
Mark D. Studebaker
64aeb747a4 remove -o and -g args to install
Date: Thu, 18 Dec 2003 22:42:36 +0100
From: Haakon Riiser <haakon.riiser@fys.uio.no>
To: sensors@Stimpy.netroedge.com
Subject: lm_sensors 2.8.2 / DESTDIR / root

The reason for this email is that I always try to avoid running
Makefiles as root, even during 'make install'.  Therefore, I
always use the DESTDIR feature, when it's available.  Until today,
I always built i2c and lm_sensors by doing

  $ make
  $ make -i install DESTDIR=/foo
  $ cd /foo && su root && fix permissions/ownership && install

The -i flag to make install is a kludge to avoid having to be root
while installing to the DESTDIR, and it's only required because
the files are installed with "-o root -g root".  Using the -i
flag is of course not a good idea, since more fatal errors can
easily fly by undetected.

Today, I upgraded to Linux 2.6.0, and tried a similar install
procedure for lm_sensors, except that the make target is now "user"
and the install target is "user_install".  I now noticed that the
DESTDIR variable is not used everywhere in "user_install", so I
couldn't use the -i kludge anymore.  Instead, I wrote a patch that
removes the "-o root -g root" arguments to install everywhere, and
I also tried to add DESTDIR to all files/directories installed.
(The patch only applies to lm_sensors, not i2c, since only
lm_sensors is required in Linux 2.6.0.)

There's really no reason to say -o root -g root anyway, since if you
do install directly with make install, you have to be logged in as
root, and then the files will get the right ownership by default.
Much of the point of installing to a temporary DESTDIR is that you
don't have to be root, and that you can prepare the installation
by hand.  Fixing the ownership is trivial:

  chown -R root.root $DESTDIR


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2189 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-23 23:13:38 +00:00
Mark D. Studebaker
8de677db34 pwmconfig: write fan dependency to config file
fancontrol: monitor fan speed;
		trap signal and restore fans on trap;
		check read/write results and abort if fail;
		support 2.6 kernels;
		remove DEBUG=1


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2188 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-20 22:35:23 +00:00
Mark D. Studebaker
ba972d7b0a initial 2.6 support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2187 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-20 18:40:39 +00:00
Marius Reiner
77d38d9fe9 (marius) bugfix
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2183 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-16 00:58:46 +00:00
Marius Reiner
324c738f9c (marius) optimization
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2182 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-16 00:49:59 +00:00
Mark D. Studebaker
5dee16319e more fixes and improvements
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2178 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-15 03:50:09 +00:00
Mark D. Studebaker
d1e20b9e27 improvements
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2177 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-14 19:19:52 +00:00
Mark D. Studebaker
270bd02b4f add DESTDIR. patch from
Sergey Vlasov <vsu@altlinux.ru>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2164 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-13 23:08:58 +00:00
Mark D. Studebaker
bdebe88c28 handle multiple fans controlled by a single PWM
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2048 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-09 02:32:08 +00:00
Mark D. Studebaker
d1c97266db remove burntest
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2030 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-28 01:41:47 +00:00
Mark D. Studebaker
9728b298e3 add more programs installed in /usr/local/sbin
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2026 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-27 01:26:44 +00:00
Marius Reiner
6765e3fc46 (marius) comments
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2007 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-09-28 20:02:36 +00:00
Marius Reiner
8ecd48f56c (marius) Changed URL to SpeedFan hardware database
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1892 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-21 17:07:01 +00:00
Jean Delvare
52720d826f Prevent hang after config file creation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1891 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-21 13:07:15 +00:00
Marius Reiner
cb87834e01 (marius) removed pwmtest, pwmconfig takes over the pwm related stuff
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1858 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-05 16:16:03 +00:00
Marius Reiner
0e1d5df3ef (marius) added URL to project page (documentation)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1856 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-05 16:00:20 +00:00
Marius Reiner
eb4c9aa2d1 (marius) added some comments.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1815 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-23 20:57:49 +00:00
Marius Reiner
2d5e514e91 Added PID file creation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1798 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-21 14:04:39 +00:00
Marius Reiner
313a183bb3 *** empty log message ***
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1796 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-20 19:51:26 +00:00
Mark D. Studebaker
f68a197dcc simple PWM test shell script
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1682 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-01 23:55:20 +00:00