home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / libsane.preinst < prev    next >
Encoding:
Text File  |  2009-03-27  |  775 b   |  25 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. ## Transition from the old-style udev setup to the old-style dh_installudev setup
  5. ## Then dh_installudev will take care of the transition to the new dh_installudev setup
  6. if [ "$1" = install ] || [ "$1" = upgrade ]; then
  7.     if [ -e "/etc/udev/rules.d/025_libsane.rules" ]; then
  8.         mv /etc/udev/rules.d/025_libsane.rules /etc/udev/rules.d/z60_libsane.rules
  9.     fi
  10.  
  11.     if [ -e "/etc/modprobe.d/libsane" ]; then
  12.     if [ "`md5sum \"/etc/modprobe.d/libsane\" | sed -e \"s/ .*//\"`" = \
  13.         "`dpkg-query -W -f='${Conffiles}' libsane | sed -n -e \"\\\\' /etc/modprobe.d/libsane's/.* //p\"`" ]
  14.     then
  15.         rm -f "/etc/modprobe.d/libsane"
  16.     fi
  17.     fi
  18.  
  19.     if [ -e "/etc/modprobe.d/blacklist-scanner" ]; then
  20.     rm -f "/etc/modprobe.d/blacklist-scanner"
  21.     fi
  22. fi
  23.  
  24.  
  25.