18 lines
371 B
Bash
18 lines
371 B
Bash
# vim: set ft=sh:
|
|
# shellcheck shell=sh
|
|
#
|
|
# https://www.shellcheck.net/wiki/SC2154
|
|
# https://www.shellcheck.net/wiki/SC2034
|
|
# shellcheck disable=2154,2034
|
|
|
|
[ "$break" = mdev ] && { print "break before mdev.init"; sh; }
|
|
|
|
mdev -s
|
|
mdev -df 2> /dev/null & mdev_pid="$!"
|
|
|
|
find /sys/devices -name uevent |
|
|
|
|
while read -r uevent; do
|
|
printf add > "$uevent"
|
|
done 2> /dev/null
|