mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
add ipmi init script
This commit is contained in:
parent
ed1ee73953
commit
6247d67ec1
@ -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
17
ipmitool/contrib/ipmi.init
Executable 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user