Blame SOURCES/kabi.sh

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