2020-07-27 14:02:22 +05:30
|
|
|
# vim: set ft=sh:
|
|
|
|
# shellcheck shell=sh
|
|
|
|
#
|
2021-05-10 16:53:34 +05:30
|
|
|
# https://www.shellcheck.net/wiki/SC2154
|
|
|
|
# https://www.shellcheck.net/wiki/SC2034
|
2020-07-27 14:02:22 +05:30
|
|
|
# shellcheck disable=2154,2034
|
|
|
|
|
2020-09-11 01:23:39 +05:30
|
|
|
[ "$break" = mdev ] && { print "break before mdev.init"; sh; }
|
2020-07-27 14:02:22 +05:30
|
|
|
|
2020-09-11 01:23:39 +05:30
|
|
|
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
|