PREUN
/bin/sh
if [ -L /lib/modules/4.4.50-tmb-desktop-2.mga5/build ]; then
rm -f /lib/modules/4.4.50-tmb-desktop-2.mga5/build
fi
if [ -L /lib/modules/4.4.50-tmb-desktop-2.mga5/source ]; then
rm -f /lib/modules/4.4.50-tmb-desktop-2.mga5/source
fi
exit 0
POSTIN
/bin/sh
if [ -d /lib/modules/4.4.50-tmb-desktop-2.mga5 ]; then
rm -f /lib/modules/4.4.50-tmb-desktop-2.mga5/{build,source}
ln -sf /usr/src/4.4.50-tmb-desktop-2.mga5 /lib/modules/4.4.50-tmb-desktop-2.mga5/build
ln -sf /usr/src/4.4.50-tmb-desktop-2.mga5 /lib/modules/4.4.50-tmb-desktop-2.mga5/source
fi