redhat-rpm-config/kmod.prov
Panu Matilainen dd2a70568b - Move kmod and libsymlink dependency generators here from rpm
- These are specific to Fedora so might as well live here, and
  having them here also avoids having to carry patches in rpm
  for no good reason etc
2014-04-15 10:08:30 +03:00

18 lines
277 B
Bash

#!/bin/sh +x
IFS=$'\n'
for i in $(grep -E '(/lib/modules/.*\.ko|/lib/modules/.*/modules.builtin)');
do
kmod=$(basename $i);
if [ $kmod == "modules.builtin" ]; then
for j in $(cat $i); do
j=$(basename $j);
echo "kmod($j)"
done
else
echo "kmod($kmod)"
fi
done