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

Commit

Permalink
mdev: Silence errorS
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Mar 7, 2020
1 parent 45b5b52 commit 406d933
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/init/rc.boot
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,14 @@ log "Starting device manager..."; {
elif command -v mdev >/dev/null; then
log "Starting mdev..."

printf /bin/mdev > /proc/sys/kernel/hotplug
# 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

mdev -s

# Create /dev/mapper nodes.
Expand Down

0 comments on commit 406d933

Please sign in to comment.