tinyramfs/hooks/proc/proc.init

17 lines
356 B
Plaintext
Raw Normal View History

2020-07-27 11:32:22 +03:00
# vim: set ft=sh:
# shellcheck shell=sh
#
2021-05-10 14:23:34 +03:00
# https://www.shellcheck.net/wiki/SC2154
2020-07-27 11:32:22 +03:00
# shellcheck disable=2154
2020-09-10 22:53:39 +03:00
[ "$break" = proc ] && { print "break before proc.init"; sh; }
2020-07-27 11:32:22 +03:00
2020-09-10 22:53:39 +03:00
command -v device-helper > /proc/sys/kernel/hotplug
2021-05-10 14:23:34 +03:00
# Prepare for fork bomb!
2020-09-10 22:53:39 +03:00
find /sys/devices -name uevent |
while read -r uevent; do
printf add > "$uevent"
done 2> /dev/null