mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 01:02:26 +01:00
28 lines
542 B
Plaintext
28 lines
542 B
Plaintext
#!/sbin/runscript
|
|
|
|
depend() {
|
|
need sysfs dev
|
|
before checkfs fsck
|
|
after modloop
|
|
keyword novserver
|
|
}
|
|
|
|
# Load hardware drivers
|
|
start() {
|
|
# check for boot option "nocoldplug"
|
|
if get_bootparam noautodetect; then
|
|
ewarn "Autodetection of hardware disabled from boot cmdline"
|
|
return 0
|
|
fi
|
|
|
|
|
|
ebegin "Loading hardware drivers"
|
|
find /sys -name modalias | xargs sort -u \
|
|
| xargs modprobe -a 2> /dev/null
|
|
# we run it twice so we detect all devices
|
|
find /sys -name modalias | xargs sort -u \
|
|
| xargs modprobe -a 2> /dev/null
|
|
eend 0
|
|
}
|
|
|