Blame SOURCES/kabi.sh

a008c1
#!/bin/bash +x
a008c1
#
a008c1
# kabi.sh - Automatically extract any kernel symbol checksum from the
a008c1
#           symvers file and add to RPM deps.  This is used to move the
a008c1
#           checksum checking from modprobe to rpm install for 3rd party
a008c1
#           modules (so they can fail during install and not at load).
a008c1
a008c1
IFS=$'\n'
a008c1
a008c1
for symvers in $(grep -E '(/boot/symvers-.*|/lib/modules/[1-9].*/symvers)\.gz') "$@";
a008c1
do
a008c1
    zcat $symvers | awk ' {print "kernel(" $2 ") = " $1 }'
a008c1
done