home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- set -e
-
- ## Transition from the old-style udev setup to the old-style dh_installudev setup
- ## Then dh_installudev will take care of the transition to the new dh_installudev setup
- if [ "$1" = install ] || [ "$1" = upgrade ]; then
- if [ -e "/etc/udev/rules.d/025_libsane.rules" ]; then
- mv /etc/udev/rules.d/025_libsane.rules /etc/udev/rules.d/z60_libsane.rules
- fi
-
- if [ -e "/etc/modprobe.d/libsane" ]; then
- if [ "`md5sum \"/etc/modprobe.d/libsane\" | sed -e \"s/ .*//\"`" = \
- "`dpkg-query -W -f='${Conffiles}' libsane | sed -n -e \"\\\\' /etc/modprobe.d/libsane's/.* //p\"`" ]
- then
- rm -f "/etc/modprobe.d/libsane"
- fi
- fi
-
- if [ -e "/etc/modprobe.d/blacklist-scanner" ]; then
- rm -f "/etc/modprobe.d/blacklist-scanner"
- fi
- fi
-
-
-