diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 15:03:00 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 15:03:00 +0200 |
commit | b32d92e890caac903491116e9d817aa780c0323b (patch) | |
tree | 5a135c37eaa9ac94772819a28ce5beedd18e5c4a /contrib/ipmi.init.basic | |
parent | c3445516ecd58e97de483cf4b7fafcc1104890d7 (diff) |
Imported Upstream version 1.8.14upstream/1.8.14
Diffstat (limited to 'contrib/ipmi.init.basic')
-rwxr-xr-x | contrib/ipmi.init.basic | 17 |
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 + |