2014-04-15 07:08:30 +00:00
|
|
|
#!/bin/sh +x
|
|
|
|
|
|
|
|
IFS=$'\n'
|
|
|
|
|
|
|
|
for i in $(grep -E '(/lib/modules/.*\.ko|/lib/modules/.*/modules.builtin)');
|
|
|
|
do
|
2014-05-09 17:43:59 +00:00
|
|
|
kmod=$(basename $i | sed -e 's/.[xg]z//');
|
2014-04-15 07:08:30 +00:00
|
|
|
|
|
|
|
if [ $kmod == "modules.builtin" ]; then
|
|
|
|
for j in $(cat $i); do
|
|
|
|
j=$(basename $j);
|
|
|
|
echo "kmod($j)"
|
|
|
|
done
|
|
|
|
else
|
|
|
|
echo "kmod($kmod)"
|
|
|
|
fi
|
|
|
|
done
|