summaryrefslogtreecommitdiff
path: root/contrib/ipmi.init.basic
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ipmi.init.basic')
-rwxr-xr-xcontrib/ipmi.init.basic17
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/ipmi.init.basic b/contrib/ipmi.init.basic
new file mode 100755
index 0000000..96ca922
--- /dev/null
+++ b/contrib/ipmi.init.basic
@@ -0,0 +1,17 @@
+#!/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
+