*: refactor

Documentation will be rewritten and added later.
This commit is contained in:
illiliti
2021-07-31 20:20:16 +03:00
parent 7bfc7fe315
commit a468c11a30
45 changed files with 618 additions and 2161 deletions

4
hook/proc/proc Normal file
View File

@ -0,0 +1,4 @@
# vim: set ft=sh:
# shellcheck shell=sh
copy_exec find

19
hook/proc/proc.init Normal file
View File

@ -0,0 +1,19 @@
# vim: set ft=sh:
# shellcheck shell=sh
#
# https://shellcheck.net/wiki/SC2154
# shellcheck disable=2154
printf '/sbin/helper\n' > /proc/sys/kernel/hotplug
find /sys/devices -name uevent |
while read -r uevent; do
printf add > "$uevent"
done 2> /dev/null
find /sys/devices -name uevent |
while read -r uevent; do
printf add > "$uevent"
done 2> /dev/null

4
hook/proc/proc.init.late Normal file
View File

@ -0,0 +1,4 @@
# vim: set ft=sh:
# shellcheck shell=sh
printf '\0' > /proc/sys/kernel/hotplug