PREUN
/bin/sh
# we need to delete <modules>/{build,source} at uninstall
if [ -L /lib/modules/5.10.25-1.mga7/build ]; then
rm -f /lib/modules/5.10.25-1.mga7/build
fi
if [ -L /lib/modules/5.10.25-1.mga7/source ]; then
rm -f /lib/modules/5.10.25-1.mga7/source
fi
exit 0
###
### file lists
###
# kernel
POSTIN
/bin/sh
# place /build and /source symlinks in place.
if [ -d /lib/modules/5.10.25-1.mga7 ]; then
ln -sf /usr/src/kernel-linus-devel-5.10.25-1.mga7 /lib/modules/5.10.25-1.mga7/build
ln -sf /usr/src/kernel-linus-devel-5.10.25-1.mga7 /lib/modules/5.10.25-1.mga7/source
fi