pkg://fdutils_5.4-20040228-1_mipsel.deb:354564/postinst
info downloads
#!/bin/sh
set -e
# Automatically added by dh_installdocs
if [ "$1" = configure ] && which install-docs >/dev/null 2>&1; then
install-docs -i /usr/share/doc-base/fdutils-faq
fi
# End automatically added section
# Automatically added by dh_installdocs
if [ "$1" = configure ] && which install-docs >/dev/null 2>&1; then
install-docs -i /usr/share/doc-base/fdutils
fi
# End automatically added section
case "$1" in
configure)
install-info --description='Linux floppy utilities' \
--section "Disk Management" "Disk Management" \
--quiet /usr/share/info/fdutils.info.gz
if [ "$DEBIAN_FRONTEND" ]; then
DEBIAN_FRONTEND=`echo "$DEBIAN_FRONTEND" | tr A-Z a-z`
fi
if [ "$DEBIAN_FRONTEND" != "noninteractive" ] \
&& dpkg --compare-versions "$2" lt "5.2.0.1998-07-01-3"; then
/usr/sbin/fdutilsconfig
echo
echo "Please note that you can run '/usr/sbin/fdutilsconfig' to change"
echo "fdmount setuid root settings."
elif [ -e /etc/fdmount.conf ] \
&& dpkg --compare-versions "$2" lt "5.3-4"; then
if grep -q "is_suid=yes" /etc/fdmount.conf \
&& ! dpkg-statoverride --list /usr/bin/fdmount >/dev/null; then
dpkg-statoverride --update --add root floppy 4750 /usr/bin/fdmount
fi
echo "Keeping old fdmount setuid root settings."
echo "Please note that you can run"
echo "'/usr/sbin/fdutilsconfig' to change them."
fi
if [ -e "/etc/fdprm" ]; then
echo "Fdutils-5.0 introduced two new configuration files: /etc/mediaprm and"
echo "/etc/driveprm. They replace the old /etc/fdprm."
echo "Renaming old file /etc/fdprm to /etc/fdprm.obsolete ..."
mv -f /etc/fdprm /etc/fdprm.obsolete
echo
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
;;
esac