cleanup
This commit is contained in:
@@ -3,16 +3,15 @@
|
||||
#
|
||||
# false positive
|
||||
# shellcheck disable=2154,2016
|
||||
{
|
||||
for _binary in mdev find; do
|
||||
copy_binary "$_binary"
|
||||
done
|
||||
|
||||
printf "%s\n" \
|
||||
'SUBSYSTEM=block;.* 0:0 660 @device-helper' \
|
||||
> "${tmpdir}/etc/mdev.conf"
|
||||
for _binary in mdev find; do
|
||||
copy_binary "$_binary"
|
||||
done
|
||||
|
||||
[ "$monolith" = 1 ] || printf "%s\n" \
|
||||
'$MODALIAS=.* 0:0 660 @modprobe "$MODALIAS"' \
|
||||
>> "${tmpdir}/etc/mdev.conf"
|
||||
}
|
||||
printf "%s\n" \
|
||||
'SUBSYSTEM=block;.* 0:0 660 @device-helper' \
|
||||
> "${tmpdir}/etc/mdev.conf"
|
||||
|
||||
[ "$monolith" = 1 ] || printf "%s\n" \
|
||||
'$MODALIAS=.* 0:0 660 @modprobe "$MODALIAS"' \
|
||||
>> "${tmpdir}/etc/mdev.conf"
|
||||
|
||||
@@ -3,15 +3,14 @@
|
||||
#
|
||||
# false positive
|
||||
# shellcheck disable=2154,2034
|
||||
{
|
||||
[ "$break" = devmgr ] && { print "break before run_mdev()"; sh; }
|
||||
|
||||
mdev -s
|
||||
mdev -df 2> /dev/null & mdev_pid="$!"
|
||||
|
||||
find /sys/devices -name uevent |
|
||||
[ "$break" = mdev ] && { print "break before mdev.init"; sh; }
|
||||
|
||||
while read -r uevent; do
|
||||
printf add > "$uevent"
|
||||
done 2> /dev/null
|
||||
}
|
||||
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
|
||||
|
||||
@@ -3,6 +3,5 @@
|
||||
#
|
||||
# false positive
|
||||
# shellcheck disable=2154
|
||||
{
|
||||
kill "$mdev_pid"
|
||||
}
|
||||
|
||||
kill "$mdev_pid"
|
||||
|
||||
Reference in New Issue
Block a user