summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2007-07-08 12:00:55 +0000
committerJean Delvare <khali@linux-fr.org>2007-07-08 12:00:55 +0000
commita83ef92c9a3b6e7ab76b7e8a268d29829c54a271 (patch)
tree80d480377928985a2b3f57eeb2c0799fa7694857
parent982afbce24e46091bbd3ed91e40dd721fca7e068 (diff)
downloadlm-sensors-git-a83ef92c9a3b6e7ab76b7e8a268d29829c54a271.tar.gz
Delete mkdev.sh. i2c device nodes are created by devfs or udev on most
2.6 kernel-based systems, for others they should have been created at system installation time. If they are missing, sensors-detect will run MAKEDEV to create them. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4593 7894878c-1315-0410-8ee3-d5d059ff63e0
-rw-r--r--CHANGES1
-rw-r--r--INSTALL5
-rw-r--r--doc/FAQ8
-rw-r--r--doc/lm_sensors-FAQ.html4
-rw-r--r--doc/lm_sensors-FAQ.texi2
-rwxr-xr-xprog/mkdev/mkdev.sh32
6 files changed, 8 insertions, 44 deletions
diff --git a/CHANGES b/CHANGES
index 97f43f9e..093920e1 100644
--- a/CHANGES
+++ b/CHANGES
@@ -22,6 +22,7 @@ SVN HEAD
Program isadump: Detect when address bit 7 is a busy flag
Fix Super-I/O exit sequence for Winbond/Fintek chips
Program matorb/displayit: Delete, obsolete
+ Program mkdev.sh: Delete, obsolete
Program mkpatch: Delete
Program fancontrol: Use let for arithmetic evaluation
No longer need awk and grep
diff --git a/INSTALL b/INSTALL
index 8020648e..ab11952f 100644
--- a/INSTALL
+++ b/INSTALL
@@ -157,11 +157,6 @@ on which it depends.
You can not use demand-loading; you will have to issue explicit modprobe
instructions.
-If you have an older installation, you will probably have to create the
-i2c device files in the /dev directory. They are called /dev/i2c-%d,
-and are character devices with major device number 89 and minor device
-number %d. The script prog/mkdev/mkdev.sh will create the files for you.
-
There is a scanning program installed called sensors-detect. It
will scan all available I2C and SMBus adapters for all known devices,
and will also look for ISA, PCI and Super-I/O chips with sensors,
diff --git a/doc/FAQ b/doc/FAQ
index 0af9111c..cc4b2c56 100644
--- a/doc/FAQ
+++ b/doc/FAQ
@@ -691,7 +691,7 @@ settings for the Processor Core voltage (often in0_min and in0_max) in
that file so that they don't depend on vid.
The CPU nominal voltage is computed from VID lines according to a
-formula that depends on the CPU type. Since Linux 2.6.14, the right
+formula that depends on the CPU type. Since Linux 2.6.9, the right
formula is selected automatically. See `doc/vid' for more information.
4.8 I read sensor values several times a second, but they are only updated only each second or so. Why?
@@ -1063,9 +1063,9 @@ not loaded and you did not run sensors-detect as root.
-----------------------------------------------------
Your `/dev/i2c-0,' `/dev/i2c0', or `/dev/i2c/0' files do not exist or
-you did not run `sensors-detect' as root. Run the script
-`prog/mkdev/mkdev.sh' to create the `/dev/i2c-x' files. Run `devfs' in
-the kernel to get the `/dev/i2c/x' files.
+you did not run `sensors-detect' as root. Use `MAKEDEV' or `mknod' to
+create the `/dev/i2c-x' files. Run `devfs' in the kernel to get the
+`/dev/i2c/x' files.
4.24.3 Sensors-detect doesn't find any sensors!
-----------------------------------------------
diff --git a/doc/lm_sensors-FAQ.html b/doc/lm_sensors-FAQ.html
index 4ddf2902..d004d244 100644
--- a/doc/lm_sensors-FAQ.html
+++ b/doc/lm_sensors-FAQ.html
@@ -1106,7 +1106,7 @@ and change the min and max settings for the Processor Core voltage
(often in0_min and in0_max) in that file so that they don't depend on vid.
<p>The CPU nominal voltage is computed from VID lines according to a formula
-that depends on the CPU type. Since Linux 2.6.14, the right formula is
+that depends on the CPU type. Since Linux 2.6.9, the right formula is
selected automatically.
See <samp><span class="file">doc/vid</span></samp> for more information.
@@ -1625,7 +1625,7 @@ was not loaded and you did not run sensors-detect as root.
<p>Your <samp><span class="file">/dev/i2c-0,</span></samp> <samp><span class="file">/dev/i2c0</span></samp>, or <samp><span class="file">/dev/i2c/0</span></samp> files do not exist
or you did not run <samp><span class="command">sensors-detect</span></samp> as root.
-Run the script <samp><span class="command">prog/mkdev/mkdev.sh</span></samp> to create the <samp><span class="file">/dev/i2c-x</span></samp> files.
+Use <samp><span class="command">MAKEDEV</span></samp> or <samp><span class="command">mknod</span></samp> to create the <samp><span class="file">/dev/i2c-x</span></samp> files.
Run <samp><span class="command">devfs</span></samp> in the kernel to get the <samp><span class="file">/dev/i2c/x</span></samp> files.
<p><a name="Sensors_002ddetect-doesnt-find-any-sensors"></a>
diff --git a/doc/lm_sensors-FAQ.texi b/doc/lm_sensors-FAQ.texi
index b480091f..de5a6f26 100644
--- a/doc/lm_sensors-FAQ.texi
+++ b/doc/lm_sensors-FAQ.texi
@@ -1104,7 +1104,7 @@ was not loaded and you did not run sensors-detect as root.
Your @file{/dev/i2c-0,} @file{/dev/i2c0}, or @file{/dev/i2c/0} files do not exist
or you did not run @command{sensors-detect} as root.
-Run the script @command{prog/mkdev/mkdev.sh} to create the @file{/dev/i2c-x} files.
+Use @command{MAKEDEV} or @command{mknod} to create the @file{/dev/i2c-x} files.
Run @command{devfs} in the kernel to get the @file{/dev/i2c/x} files.
diff --git a/prog/mkdev/mkdev.sh b/prog/mkdev/mkdev.sh
deleted file mode 100755
index 8b29a37c..00000000
--- a/prog/mkdev/mkdev.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-
-# Here you can set several defaults.
-
-# The number of devices to create (max: 256)
-# If not provided on the command line, default to 32
-NUMBER=${1:-32}
-
-# The owner and group of the devices
-OUSER=root
-OGROUP=root
-# The mode of the devices
-MODE=600
-
-# This script doesn't need to be run if devfs is used
-if [ -r /proc/mounts ] ; then
- if grep -q "/dev devfs" /proc/mounts ; then
- echo "You do not need to run this script as your system uses devfs."
- exit;
- fi
-fi
-
-i=0;
-
-while [ $i -lt $NUMBER ] ; do
- if [ ! -c /dev/i2c-$i ] ; then
- echo /dev/i2c-$i
- mknod -m $MODE /dev/i2c-$i c 89 $i || exit
- chown "$OUSER:$OGROUP" /dev/i2c-$i || exit
- fi
- i=$[$i + 1]
-done