mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 19:17:22 +00:00
always remove old device file in case we get new dynamic major assigned from kernel
This commit is contained in:
parent
3fa867b222
commit
55ac08dc49
@ -48,6 +48,12 @@ start() {
|
|||||||
# this failure.
|
# this failure.
|
||||||
grep -q ipmidev /proc/devices || RETVAL=1
|
grep -q ipmidev /proc/devices || RETVAL=1
|
||||||
|
|
||||||
|
# remove old device file always
|
||||||
|
# in case ipmi gets assigned new dynamic major number from kernel
|
||||||
|
if [ -c /dev/ipmi0 ]; then
|
||||||
|
rm -f /dev/ipmi0
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if the device file exists and create if not.
|
# Check if the device file exists and create if not.
|
||||||
if [ ! -c /dev/ipmi0 ] && [ $RETVAL -eq 0 ]
|
if [ ! -c /dev/ipmi0 ] && [ $RETVAL -eq 0 ]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user