Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > media > main-release > by-pkgid > c43be6cd53d5809638177156d33c7fe7 > scriptlet

module-init-tools-3.6-7mdv2010.0.x86_64.rpm

POSTIN

/bin/sh
if [ ! -s /etc/modprobe.conf ]; then
	MODPROBE_CONF=/etc/modprobe.conf
elif [ -e /etc/modprobe.conf.rpmnew ]; then
	MODPROBE_CONF=/etc/modprobe.conf.rpmnew
fi

if [ -s /etc/modules.conf -a -n "$MODPROBE_CONF" ]; then
	echo '# This file is autogenerated from /etc/modules.conf using generate-modprobe.conf command' >> $MODPROBE_CONF
	echo >> $MODPROBE_CONF
	/sbin/generate-modprobe.conf >> $MODPROBE_CONF 2> /dev/null
fi

if [ -s /etc/modprobe.conf ]; then
	perl -pi -e 's/(^\s*include\s.*modprobe\.(default|compat).*)/# This file is now included automatically by modprobe\n# $1/' /etc/modprobe.conf
fi

exit 0

Triggers

module-init-tools < 3.3-pre11.10mdv2008.0

/bin/sh
for i in insmod lsmod modprobe rmmod depmod modinfo; do
	update-alternatives --remove $i /sbin/$i-25
	update-alternatives --remove $i /sbin/$i-24
	update-alternatives --remove man-$i /usr/share/man/man8/$i-25.8.lzma
	update-alternatives --remove man-$i /usr/share/man/man8/$i-24.8.lzma
done
exit 0

# libmodprobe.so.0 used to be in /lib for x86_64 before 3.6 which now ships them in /lib64
# and the ABI has been modified without bumping the major at the same time.
# The old files in /lib will be removed very late in the transaction, which will make scriptlets
# depending on libmodprobe fail (like depmod), because depmod will prefer the library from /lib
# with the old incompatible ABI.
# A workaround is to remove the old files from /lib earlier

lib64modprobe0 >= 3.6

/bin/sh
rm -f /lib/libmodprobe.so.0*