cleanup
This commit is contained in:
+10
-11
@@ -3,16 +3,15 @@
|
||||
#
|
||||
# false positive
|
||||
# shellcheck disable=2154,2016
|
||||
{
|
||||
for _binary in mdevd mdevd-coldplug; do
|
||||
copy_binary "$_binary"
|
||||
done
|
||||
|
||||
printf "%s\n" \
|
||||
'SUBSYSTEM=block;.* 0:0 660 @device-helper' \
|
||||
> "${tmpdir}/etc/mdev.conf"
|
||||
for _binary in mdevd mdevd-coldplug; 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,9 +3,8 @@
|
||||
#
|
||||
# false positive
|
||||
# shellcheck disable=2154,2034
|
||||
{
|
||||
[ "$break" = devmgr ] && { print "break before run_mdevd()"; sh; }
|
||||
|
||||
mdevd 2> /dev/null & mdevd_pid="$!"
|
||||
mdevd-coldplug
|
||||
}
|
||||
|
||||
[ "$break" = mdevd ] && { print "break before mdevd.init"; sh; }
|
||||
|
||||
mdevd 2> /dev/null & mdevd_pid="$!"
|
||||
mdevd-coldplug
|
||||
|
||||
@@ -3,6 +3,5 @@
|
||||
#
|
||||
# false positive
|
||||
# shellcheck disable=2154
|
||||
{
|
||||
kill "$mdevd_pid"
|
||||
}
|
||||
|
||||
kill "$mdevd_pid"
|
||||
|
||||
Reference in New Issue
Block a user