summaryrefslogtreecommitdiff
path: root/scripts/ipmiutil.pre
blob: a059dccc680f7df3d0bf5df562b5eb309f74bbc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#
# Before starting an ipmiutil service, make sure we have a driver loaded,
# since running driverless for multi-user is not supported.
/usr/bin/ipmiutil cmd -k 2>/dev/null |grep "driverless" >/dev/null 2>&1
if [ $? -eq 0 ]; then
   rv=1
   echo "No Linux IPMI driver loaded, aborting."
else
   rv=0
fi
exit $rv