User Tools

Site Tools


modules_centos7

Persistent modules loading in CentOS 7

  • Create a file in /etc/sysconfig/modules and call it with the extension .modules
  • Make it executable

Example 1:

/etc/sysconfig/modules/ipmi.modules
#!/bin/sh

if [ ! -c /dev/ipmi0 ] ; then
  exec /sbin/modprobe ipmi_si >/dev/null 2>&1
fi

Example 2:

/etc/sysconfig/modules/scsi.modules
#!/bin/sh

if [ ! -c /dev/sg0 ] ; then
  exec /sbin/modprobe sg >/dev/null 2>&1
fi
modules_centos7.txt · Last modified: by herwarth