我没有找到文档明确的说明 cfg 的含义。但是从一些google到的信息可以推测出,是和 hwscan有关
如果系统中配置了
chkconfig hwscan off
则该值应该是cfg=no
如果系统中配置了
chkconfig hwscan on
则该值应该是cfg=yes
如果系统中没有配置hwscan或者压根没有安装hwscan
则该值应该是cfg=new
推测过程:
hwscan.c中有:
void help()
{
fprintf(stderr,
"Usage: hwscan [options]\n"
"Show information about currently known hardware.\n"
" --list show list of known hardware\n"
" --version show libhd version\n"
" --silent don't show hardware config changes\n"
" --boot run only if we haven't been disabled via 'hwprobe=-scan'\n"
" --cfg=state id change 'configured' status; id is one of the\n"
" ids from 'hwscan --list'\n"
" state is one of new, no, yes\n"
" --avail=state id change 'available' status\n"
" --need=state id change 'needed' status\n"
" --active=state id change 'active' status\n"
" --hw_item probe for hw_item and update status info\n"
" hw_item is one of:\n"
" all, bios, block, bluetooth, braille, bridge, camera, cdrom, chipcard, cpu,\n"
" disk, dsl, dvb, floppy, framebuffer, gfxcard, hub, ide, isapnp, isdn,\n"
" joystick, keyboard, memory, modem, monitor, mouse, netcard, network,\n"
" partition, pci, pcmcia, pcmcia-ctrl, pppoe, printer, scanner, scsi, smp,\n"
" sound, storage-ctrl, sys, tape, tv, usb, usb-ctrl, vbe, wlan, zip\n"
);
}
hwscan.c的代码在这里: code.ohloh.net/file?fid=CXLNWC7JpZXPKu6CLhXov_wUkNQ&cid=HvyjrcvY_xg&s=&browser=Default
novell.com/support/kb/doc.php?id=7005942 中有:
Recommended disabling hwscand on SLES9 servers with:
# chkconfig hwscan off
or
hwprobe=-scan boot option
or
HOTPLUG_USE_HWSCAN=NO in /etc/sysconfig/hotplug