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