home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / hdparm.postinst < prev    next >
Encoding:
Text File  |  2009-01-09  |  728 b   |  26 lines

  1. #!/bin/sh
  2.  
  3. # Clean up cdbs damage
  4. rm -f /etc/udev/rules.d/50-hdparm.rules
  5.  
  6.  
  7. if dpkg --compare-versions "$2" lt "8.6-1ubuntu1"; then
  8.     update-rc.d -f hdparm remove
  9. fi
  10.  
  11. if [ -n "$2" ] && dpkg --compare-versions "$2" lt 8.9-2; then
  12.   rm -fv /etc/rc0.d/K75hdparm /etc/rc6.d/K75hdparm
  13. fi
  14. # Automatically added by dh_installudev
  15. if [ "$1" = configure ]; then
  16.     if [ -e "/etc/udev/hdparm.rules" ]; then
  17.         echo "Preserving user changes to /lib/udev/rules.d/85-hdparm.rules ..."
  18.         if [ -e "/lib/udev/rules.d/85-hdparm.rules" ]; then
  19.             mv -f "/lib/udev/rules.d/85-hdparm.rules" "/lib/udev/rules.d/85-hdparm.rules.dpkg-new"
  20.         fi
  21.         mv -f "/etc/udev/hdparm.rules" "/lib/udev/rules.d/85-hdparm.rules"
  22.     fi
  23. fi
  24. # End automatically added section
  25.  
  26.