scripts/gentoo/find_all_modules.sh

6 lines
170 B
Bash
Raw Normal View History

2020-03-01 13:02:34 +01:00
#!/bin/bash
for i in `find /sys/ -name modalias -exec cat {} \;`; do
/sbin/modprobe --config /dev/null --show-depends $i ;
done | rev | cut -f 1 -d '/' | rev | sort -u