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