mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
18 lines
352 B
Bash
Executable File
18 lines
352 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "Setting up OpenIPMI driver..."
|
|
|
|
# load the ipmi modules
|
|
modprobe ipmi_msghandler
|
|
modprobe ipmi_devintf
|
|
if ! modprobe ipmi_si_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
|
|
|