Lines Matching +full:build +full:- +full:system +full:- +full:fedora
4 # description: start, stop, or query ipmi system monitoring tools
7 # For Redhat, Fedora, or similar systems. Handles both 2.4 and 2.6
22 [ -f /etc/sysconfig/ipmi ] || exit 0
29 echo -n $"Starting ipmi: "
33 if ! grep -q ipmidev /proc/devices
49 grep -q ipmidev /proc/devices || RETVAL=1
53 if [ -c /dev/ipmi0 ]; then
54 rm -f /dev/ipmi0
58 if [ ! -c /dev/ipmi0 ] && [ $RETVAL -eq 0 ]
61 /bin/mknod -m 0600 /dev/ipmi0 c $major 0 || RETVAL=1
64 if [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ipmi ; then
74 echo -n $"Shutting down ipmi: "
81 if [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/ipmi ; then
94 if ! /usr/bin/ipmitool -V >/dev/null
101 if ! grep -q ipmidev /proc/devices
107 # Check if we are running on a v1.0 IPMI system, and
109 if /usr/bin/ipmitool -I open bmc info | \
110 grep -q "IPMI Version.*1.0"
116 NumProcs=$(grep -c processor /proc/cpuinfo)
117 if [ $NumProcs -eq 0 ]
123 # Now build the query string. Concatenate it into
127 while [ $Count -le $NumProcs ]
139 TempString="/usr/bin/ipmitool -I open sensor get $TempString"
140 eval $TempString | awk -v "c=$Count" '
150 printf "Error: found %s CPUs, but got temps for %s\n",--c,--n >"/dev/stderr"
166 [ -e /var/lock/subsys/ipmi ] && restart || :
171 # this causes system to become unstable (a la lm_sensors)
172 if /sbin/lsmod | awk '{print $1}' | grep -q ipmi_
189 if /sbin/lsmod | awk '{print $1}' | grep -q ipmi_