tinyramfs/hooks/proc/proc.init

17 lines
356 B
Plaintext
Raw Normal View History

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