File: ipmi.init.basic

package info (click to toggle)
ipmitool 1.8.11-2%2Bsqueeze2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,048 kB
  • ctags: 4,262
  • sloc: ansic: 43,640; sh: 9,262; makefile: 217
file content (17 lines) | stat: -rwxr-xr-x 352 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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