Blame SOURCES/kabi.sh

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