Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 2f005288f02807767c03d63072cff88a > files > 77

freeipmi-1.2.4-1.fc18.i686.rpm

The Linux OpenIPMI driver is often loaded via the /etc/init.d/ipmi
setup script.  If your distribution/environment does not have this
script, the following script can be used to load/unload the driver.

#!/bin/sh

/sbin/modprobe ipmi_devintf

maj=`cat /proc/devices | awk '/ipmidev/{print $1}'`
if [ -c /dev/ipmi0 ]
then
   rm -f /dev/ipmi0
   /bin/mknod /dev/ipmi0 c $maj 0
else
   /bin/mknod /dev/ipmi0 c $maj 0
fi

/sbin/modprobe ipmi_si

# do stuff

/sbin/rmmod ipmi_si
/sbin/rmmod ipmi_devintf
/sbin/rmmod ipmi_msghandler