Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
rc.boot: Set proc hotplugger later
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Mar 7, 2020
1 parent 76505c8 commit 3a457ab
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/init/rc.boot
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ log "Starting device manager..."; {

mdev -df & mdev_pid=$!

# Try to set the hotplug script to mdev.
# This will silently fail if unavailable.
#
# The user should then run the mdev service
# to enable hotplugging.
printf /bin/mdev 2>/dev/null \
> /proc/sys/kernel/hotplug

# Create /dev/mapper nodes.
[ -x /bin/dmsetup ] && dmsetup mknodes
fi
Expand Down Expand Up @@ -139,6 +131,14 @@ log "Killing device manager to make way for service..."; {

elif [ "$mdev_pid" ]; then
kill "$mdev_pid"

# Try to set the hotplug script to mdev.
# This will silently fail if unavailable.
#
# The user should then run the mdev service
# to enable hotplugging.
printf /bin/mdev 2>/dev/null \
> /proc/sys/kernel/hotplug
fi
}

Expand Down

0 comments on commit 3a457ab

Please sign in to comment.