User Tools

Site Tools


modules_centos7

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
modules_centos7 [2015/06/26 15:56] – created herwarthmodules_centos7 [2015/06/26 15:58] (current) herwarth
Line 3: Line 3:
   * Make it executable   * Make it executable
  
 +Example 1:
 <code - /etc/sysconfig/modules/ipmi.modules> <code - /etc/sysconfig/modules/ipmi.modules>
 #!/bin/sh #!/bin/sh
Line 10: Line 11:
 fi fi
 </code> </code>
 +Example 2:
 +<code - /etc/sysconfig/modules/scsi.modules>
 +#!/bin/sh
 +
 +if [ ! -c /dev/sg0 ] ; then
 +  exec /sbin/modprobe sg >/dev/null 2>&1
 +fi
 +</code>
 +{{tag>centos}}
modules_centos7.1435334207.txt.gz · Last modified: by herwarth