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