CentOS7 kernel module management

1. Review all modules: lsmod

 

2. Check the specified module Details: modinfo module name

 

3. dynamically loaded modules: modprobe module name

 

4. Dynamic uninstall module: modprobe -r module name

 

The loading module switched automatically: Assuming that the module named xxx

vi / etc / sysconfig / modules / xxx .modules

#! /bin/sh

/sbin/modinfo -F filename xxx > /dev/null 2>&1
if [ $? -eq 0 ]; then
    /sbin/modprobe xxx
fi 

chmod +x /etc/sysconfig/modules/xxx.modules

 

Guess you like

Origin www.cnblogs.com/heqiuyong/p/11526378.html