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