天天看點

linux kudzu作用與操作方法(原創)

概述

kudzu是在linux系統啟動時用來檢測硬體的,一般在安裝完成linux系統後,kudzu是在系統啟動時自動檢測硬體的。我們通常也可以把kudzu當成aix的cfgmgr和solaris的devfsadm來檢測系統目前已安裝的硬體裝置。用ntsysv指令後,可看到許多系統啟動自動的服務。如不需要即可用ntsysv指令關閉。

ntsysv

ntsysv 工具為激活或停運服務提供了簡單的界面。您能夠使用 ntsysv 來啟動或關閉由 xinetd 管理的服務。您還能夠使用 ntsysv 來配置運作級别。按照預設配置,隻有目前運作級别會被配置。要配置不同的運作級别,使用 --level 選項來指定一個或多個運作級别。譬如,指令 ntsysv --level 345 配置運作級别 3、4、和 5。ntsysv 的界面和文本模式的安裝程式的工作方式相仿。使用上下箭頭來上下檢視清單。使用空格鍵來選擇或取消選擇服務,或用來“按” 「确定」和「取消」按鈕。要在服務清單和「确定」、「取消」按鈕中轉換,使用 [tab]鍵。* 标明某服務被設為啟動。[f1] 鍵會彈出每項服務的簡短描述。 警告 由 xinetd 管理的服務會立即受到 ntsysv 的影響。其他服務則不會立即生效。您必須使用 service daemon stop 指令來停止某項服務。在前面的例子中,把 daemon 換成您想停止的服務名稱,譬如,httpd。把 stop 換成 start 或 restart 來啟動或重新啟動某服務。

kudzu

description

kudzu detects and configures new and/or changed hardware on a system. when started, kudzu detects the current hardware, and checks it against a database stored in /etc/sysconfig/hwconf, if one exists. it then determines if any hardware has been added or removed from the system. if so, it gives the users the opportunity to configure any added hardware, and unconfigure any removed hardware. it then updates the database in /etc/sysconfig/hwconf.

if no previous database exists, kudzu attempts to determine what devices have already been configured, by looking at /etc/modprobe.conf, /etc/sysconfig/network-scripts/, and /etc/x11/xorg.conf.

options

--usage

show short usage message.

--help, -?

print help information.

-q, --quiet

run 'quietly'; do only configuration that doesn't require user input.

-s, --safe

do only 'safe' probes that won't disturb hardware. currently, this disables the serial probe, the ddc monitor probe, and the ps/2 probe.

-t, --timeout [seconds]

this sets the timeout for the initial dialog. if no key is pressed before the timeout elapses, kudzu exits, and /etc/sysconfig/hwconf is not updated.

-k, --kernel [version]

when determining whether a module exists, use the specified kernel version. (if this is not set, it defaults to the current kernel version.) do not specify suffixes such as 'smp' or 'summit'; these are automatically searched.

-b, --bus [bus]

only probe on the specified bus.

-c, --class [class]

only probe for the specified class.

-f, --file [file]

read hardware probe info from file file and do not do an actual probe.

-p, --probe

print probe information to the screen, and do not actually configure or unconfigure any devices.

files

/etc/sysconfig/hwconf

listing of current installed hardware.

/etc/sysconfig/kudzu

configuration for the boot-time hardware probe. set 'safe' to something other than 'no' to force only safe probes.

/etc/modprobe.conf

module configuration file.

/etc/sysconfig/network-scripts/ifcfg-*

network interface configuration files.

bugs

the serial probe will disturb any currently in-use devices, and returns odd results if used on machines acting as serial consoles. on some older graphics cards, the ddc probe can do strange things.

running kudzu to configure network adapters post-boot after the network has started may have unintended results.

author

red hat, inc.

本文原創,轉載請注明出處、作者

如有錯誤,歡迎指正

郵箱:[email protected]

作者:czmmiao  文章出處:http://czmmiao.iteye.com/blog/1933629

繼續閱讀