This commit is contained in:
illiliti 2020-09-04 01:29:37 +03:00
parent 445208899a
commit dacc7d8af7
21 changed files with 0 additions and 58 deletions

View File

@ -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

View File

@ -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; }

View File

@ -3,8 +3,6 @@
# #
# false positive # false positive
# shellcheck disable=2154 # shellcheck disable=2154
#
# stop_eudev()
{ {
udevadm control -e udevadm control -e
} }

View File

@ -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
} }

View File

@ -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; }

View File

@ -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 \

View File

@ -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; }

View File

@ -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 \

View File

@ -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; }

View File

@ -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

View File

@ -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; }

View File

@ -3,8 +3,6 @@
# #
# false positive # false positive
# shellcheck disable=2154 # shellcheck disable=2154
#
# stop_mdev()
{ {
kill "$mdev_pid" kill "$mdev_pid"
} }

View File

@ -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

View File

@ -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; }

View File

@ -3,8 +3,6 @@
# #
# false positive # false positive
# shellcheck disable=2154 # shellcheck disable=2154
#
# stop_mdevd()
{ {
kill "$mdevd_pid" kill "$mdevd_pid"
} }

View File

@ -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
} }

View File

@ -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; }

View File

@ -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
} }

View File

@ -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

View File

@ -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; }

View File

@ -3,8 +3,6 @@
# #
# false positive # false positive
# shellcheck disable=2154 # shellcheck disable=2154
#
# stop_systemd_udevd()
{ {
udevadm control -e udevadm control -e
} }