Blame SOURCES/kabi.sh

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