From a83ef92c9a3b6e7ab76b7e8a268d29829c54a271 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 8 Jul 2007 12:00:55 +0000 Subject: [PATCH] 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 --- CHANGES | 1 + INSTALL | 5 ----- doc/FAQ | 8 ++++---- doc/lm_sensors-FAQ.html | 4 ++-- doc/lm_sensors-FAQ.texi | 2 +- prog/mkdev/mkdev.sh | 32 -------------------------------- 6 files changed, 8 insertions(+), 44 deletions(-) delete mode 100755 prog/mkdev/mkdev.sh 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.

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 doc/vid for more information. @@ -1625,7 +1625,7 @@ was 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. +Use MAKEDEV or mknod to create the /dev/i2c-x files. Run devfs in the kernel to get the /dev/i2c/x files.

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