always remove old device file in case we get new dynamic major assigned from kernel

This commit is contained in:
Duncan Laurie 2005-04-03 22:45:56 +00:00
parent 3fa867b222
commit 55ac08dc49

View File

@ -48,6 +48,12 @@ start() {
# this failure.
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.
if [ ! -c /dev/ipmi0 ] && [ $RETVAL -eq 0 ]
then