add ipmi init script

This commit is contained in:
Duncan Laurie 2004-09-09 23:44:58 +00:00
parent ed1ee73953
commit 6247d67ec1
2 changed files with 18 additions and 1 deletions

View File

@ -34,6 +34,6 @@
MAINTAINERCLEANFILES = Makefile.in
dist_pkgdata_DATA = bmclanconf README \
dist_pkgdata_DATA = bmclanconf ipmi.init README \
collect_data.sh create_rrds.sh create_webpage_compact.sh create_webpage.sh

17
ipmitool/contrib/ipmi.init Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
echo "Setting up OpenIPMI driver..."
# load the ipmi modules
modprobe ipmi_msghandler
modprobe ipmi_devintf
if ! modprobe ipmi_kcs_drv ; then
modprobe ipmi_si # try new module name
fi
maj=$(cat /proc/devices | awk '/ipmidev/{print $1}')
if [ "$maj" ]; then
test -e /dev/ipmi0 && rm -f /dev/ipmi0
/bin/mknod /dev/ipmi0 c $maj 0
fi