cleanup
This commit is contained in:
parent
445208899a
commit
dacc7d8af7
@ -3,11 +3,7 @@
|
|||||||
#
|
#
|
||||||
# false positive
|
# false positive
|
||||||
# shellcheck disable=2154
|
# shellcheck disable=2154
|
||||||
#
|
|
||||||
# handle_eudev()
|
|
||||||
{
|
{
|
||||||
print "configuring eudev"
|
|
||||||
|
|
||||||
for _binary in udevd udevadm; do
|
for _binary in udevd udevadm; do
|
||||||
copy_binary "$_binary"
|
copy_binary "$_binary"
|
||||||
done
|
done
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#
|
#
|
||||||
# false positive
|
# false positive
|
||||||
# shellcheck disable=2154,2034
|
# shellcheck disable=2154,2034
|
||||||
#
|
|
||||||
# run_eudev()
|
|
||||||
{
|
{
|
||||||
[ "$break" = devmgr ] && { print "break before run_eudev()"; sh; }
|
[ "$break" = devmgr ] && { print "break before run_eudev()"; sh; }
|
||||||
|
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#
|
#
|
||||||
# false positive
|
# false positive
|
||||||
# shellcheck disable=2154
|
# shellcheck disable=2154
|
||||||
#
|
|
||||||
# stop_eudev()
|
|
||||||
{
|
{
|
||||||
udevadm control -e
|
udevadm control -e
|
||||||
}
|
}
|
||||||
|
@ -3,11 +3,7 @@
|
|||||||
#
|
#
|
||||||
# false positive
|
# false positive
|
||||||
# shellcheck disable=2154
|
# shellcheck disable=2154
|
||||||
#
|
|
||||||
# handle_keymap()
|
|
||||||
{
|
{
|
||||||
print "configuring keymap"
|
|
||||||
|
|
||||||
copy_file "$keymap_path" "${keymap_path%/*}" 644 0
|
copy_file "$keymap_path" "${keymap_path%/*}" 644 0
|
||||||
copy_binary loadkmap
|
copy_binary loadkmap
|
||||||
}
|
}
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#
|
#
|
||||||
# false positive
|
# false positive
|
||||||
# shellcheck disable=2154
|
# shellcheck disable=2154
|
||||||
#
|
|
||||||
# run_keymap()
|
|
||||||
{
|
{
|
||||||
[ "$break" = keymap ] && { print "break before run_keymap()"; sh; }
|
[ "$break" = keymap ] && { print "break before run_keymap()"; sh; }
|
||||||
|
|
||||||
|
@ -6,11 +6,7 @@
|
|||||||
#
|
#
|
||||||
# word splitting is safe by design
|
# word splitting is safe by design
|
||||||
# shellcheck disable=2086
|
# shellcheck disable=2086
|
||||||
#
|
|
||||||
# handle_luks()
|
|
||||||
{
|
{
|
||||||
print "configuring LUKS"
|
|
||||||
|
|
||||||
[ "$hostonly" = 1 ] &&
|
[ "$hostonly" = 1 ] &&
|
||||||
for _module in \
|
for _module in \
|
||||||
aes ecb xts lrw wp512 sha256 \
|
aes ecb xts lrw wp512 sha256 \
|
||||||
|
@ -6,8 +6,6 @@
|
|||||||
#
|
#
|
||||||
# word splitting is safe by design
|
# word splitting is safe by design
|
||||||
# shellcheck disable=2086,2068
|
# shellcheck disable=2086,2068
|
||||||
#
|
|
||||||
# unlock_luks()
|
|
||||||
{
|
{
|
||||||
[ "$break" = luks ] && { print "break before unlock_luks()"; sh; }
|
[ "$break" = luks ] && { print "break before unlock_luks()"; sh; }
|
||||||
|
|
||||||
|
@ -6,11 +6,7 @@
|
|||||||
#
|
#
|
||||||
# word splitting is safe by design
|
# word splitting is safe by design
|
||||||
# shellcheck disable=2086
|
# shellcheck disable=2086
|
||||||
#
|
|
||||||
# handle_lvm()
|
|
||||||
{
|
{
|
||||||
print "configuring LVM"
|
|
||||||
|
|
||||||
[ "$hostonly" = 1 ] &&
|
[ "$hostonly" = 1 ] &&
|
||||||
for _module in \
|
for _module in \
|
||||||
dm-log dm-cache dm-mirror \
|
dm-log dm-cache dm-mirror \
|
||||||
|
@ -6,8 +6,6 @@
|
|||||||
#
|
#
|
||||||
# word splitting is safe by design
|
# word splitting is safe by design
|
||||||
# shellcheck disable=2086,2068
|
# shellcheck disable=2086,2068
|
||||||
#
|
|
||||||
# trigger_lvm()
|
|
||||||
{
|
{
|
||||||
[ "$break" = lvm ] && { print "break before trigger_lvm()"; sh; }
|
[ "$break" = lvm ] && { print "break before trigger_lvm()"; sh; }
|
||||||
|
|
||||||
|
@ -3,11 +3,7 @@
|
|||||||
#
|
#
|
||||||
# false positive
|
# false positive
|
||||||
# shellcheck disable=2154,2016
|
# shellcheck disable=2154,2016
|
||||||
#
|
|
||||||
# handle_mdev()
|
|
||||||
{
|
{
|
||||||
print "configuring mdev"
|
|
||||||
|
|
||||||
for _binary in mdev find; do
|
for _binary in mdev find; do
|
||||||
copy_binary "$_binary"
|
copy_binary "$_binary"
|
||||||
done
|
done
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#
|
#
|
||||||
# false positive
|
# false positive
|
||||||
# shellcheck disable=2154,2034
|
# shellcheck disable=2154,2034
|
||||||
#
|
|
||||||
# run_mdev()
|
|
||||||
{
|
{
|
||||||
[ "$break" = devmgr ] && { print "break before run_mdev()"; sh; }
|
[ "$break" = devmgr ] && { print "break before run_mdev()"; sh; }
|
||||||
|
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#
|
#
|
||||||
# false positive
|
# false positive
|
||||||
# shellcheck disable=2154
|
# shellcheck disable=2154
|
||||||
#
|
|
||||||
# stop_mdev()
|
|
||||||
{
|
{
|
||||||
kill "$mdev_pid"
|
kill "$mdev_pid"
|
||||||
}
|
}
|
||||||
|
@ -3,11 +3,7 @@
|
|||||||
#
|
#
|
||||||
# false positive
|
# false positive
|
||||||
# shellcheck disable=2154,2016
|
# shellcheck disable=2154,2016
|
||||||
#
|
|
||||||
# handle_mdevd()
|
|
||||||
{
|
{
|
||||||
print "configuring mdevd"
|
|
||||||
|
|
||||||
for _binary in mdevd mdevd-coldplug; do
|
for _binary in mdevd mdevd-coldplug; do
|
||||||
copy_binary "$_binary"
|
copy_binary "$_binary"
|
||||||
done
|
done
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#
|
#
|
||||||
# false positive
|
# false positive
|
||||||
# shellcheck disable=2154,2034
|
# shellcheck disable=2154,2034
|
||||||
#
|
|
||||||
# run_mdevd()
|
|
||||||
{
|
{
|
||||||
[ "$break" = devmgr ] && { print "break before run_mdevd()"; sh; }
|
[ "$break" = devmgr ] && { print "break before run_mdevd()"; sh; }
|
||||||
|
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#
|
#
|
||||||
# false positive
|
# false positive
|
||||||
# shellcheck disable=2154
|
# shellcheck disable=2154
|
||||||
#
|
|
||||||
# stop_mdevd()
|
|
||||||
{
|
{
|
||||||
kill "$mdevd_pid"
|
kill "$mdevd_pid"
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
# vim: set ft=sh:
|
# vim: set ft=sh:
|
||||||
# shellcheck shell=sh
|
# shellcheck shell=sh
|
||||||
#
|
|
||||||
# handle_proc()
|
|
||||||
{
|
{
|
||||||
print "configuring /proc hotplugger"
|
|
||||||
|
|
||||||
copy_binary find
|
copy_binary find
|
||||||
}
|
}
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#
|
#
|
||||||
# false positive
|
# false positive
|
||||||
# shellcheck disable=2154
|
# shellcheck disable=2154
|
||||||
#
|
|
||||||
# run_proc()
|
|
||||||
{
|
{
|
||||||
[ "$break" = devmgr ] && { print "break before run_proc()"; sh; }
|
[ "$break" = devmgr ] && { print "break before run_proc()"; sh; }
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
# vim: set ft=sh:
|
# vim: set ft=sh:
|
||||||
# shellcheck shell=sh
|
# shellcheck shell=sh
|
||||||
#
|
|
||||||
# stop_proc()
|
|
||||||
{
|
{
|
||||||
printf '\n' > /proc/sys/kernel/hotplug
|
printf '\n' > /proc/sys/kernel/hotplug
|
||||||
}
|
}
|
||||||
|
@ -3,11 +3,7 @@
|
|||||||
#
|
#
|
||||||
# false positive
|
# false positive
|
||||||
# shellcheck disable=2154
|
# shellcheck disable=2154
|
||||||
#
|
|
||||||
# handle_systemd_udevd()
|
|
||||||
{
|
{
|
||||||
print "configuring systemd-udevd"
|
|
||||||
|
|
||||||
for _binary in /lib/systemd/systemd-udevd udevadm; do
|
for _binary in /lib/systemd/systemd-udevd udevadm; do
|
||||||
copy_binary "$_binary"
|
copy_binary "$_binary"
|
||||||
done
|
done
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#
|
#
|
||||||
# false positive
|
# false positive
|
||||||
# shellcheck disable=2154,2034
|
# shellcheck disable=2154,2034
|
||||||
#
|
|
||||||
# run_systemd_udevd()
|
|
||||||
{
|
{
|
||||||
[ "$break" = devmgr ] && { print "break before run_systemd_udevd()"; sh; }
|
[ "$break" = devmgr ] && { print "break before run_systemd_udevd()"; sh; }
|
||||||
|
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#
|
#
|
||||||
# false positive
|
# false positive
|
||||||
# shellcheck disable=2154
|
# shellcheck disable=2154
|
||||||
#
|
|
||||||
# stop_systemd_udevd()
|
|
||||||
{
|
{
|
||||||
udevadm control -e
|
udevadm control -e
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user