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