Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-updates > by-pkgid > 0ee703e66bc542d2d87de4035979c436 > scriptlet

kernel-tmb-desktop-devel-4.9.40-1.mga6-1-1.mga6.x86_64.rpm

PREUN

/bin/sh
if [ -L /lib/modules/4.9.40-tmb-desktop-1.mga6/build ]; then
	rm -f /lib/modules/4.9.40-tmb-desktop-1.mga6/build
fi
if [ -L /lib/modules/4.9.40-tmb-desktop-1.mga6/source ]; then
	rm -f /lib/modules/4.9.40-tmb-desktop-1.mga6/source
fi
exit 0

POSTIN

/bin/sh
if [ -d /lib/modules/4.9.40-tmb-desktop-1.mga6 ]; then
	rm -f /lib/modules/4.9.40-tmb-desktop-1.mga6/{build,source}
	ln -sf /usr/src/4.9.40-tmb-desktop-1.mga6 /lib/modules/4.9.40-tmb-desktop-1.mga6/build
	ln -sf /usr/src/4.9.40-tmb-desktop-1.mga6 /lib/modules/4.9.40-tmb-desktop-1.mga6/source
fi