tinyramfs/hook/proc/proc.init
illiliti a468c11a30 *: refactor
Documentation will be rewritten and added later.
2021-07-31 20:20:16 +03:00

20 lines
367 B
Bash

# 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