home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / alsa-utils.postinst < prev    next >
Encoding:
Text File  |  2009-04-07  |  721 b   |  32 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. case "$1" in
  6.   configure)
  7.     if [ -e "/etc/udev/rules.d/85-alsa.rules" ]; then
  8.         echo "Preserving user changes to /etc/udev/rules.d/85-alsa-utils.rules ..."
  9.         mv -f "/etc/udev/rules.d/85-alsa.rules" "/etc/udev/rules.d/85-alsa-utils.rules"
  10.     fi
  11.  
  12.     if [ -L "/etc/rcS.d/S50alsa-utils" ]; then
  13.         rm -f /etc/rcS.d/S50alsa-utils
  14.     fi
  15.     ;;
  16.   abort-upgrade|abort-remove|abort-deconfigure)
  17.     # Nothing to do because we didn't take any action in the prerm
  18.     ;;
  19.   *)
  20.     echo "postinst called with unknown argument \`$1'" >&2
  21.     exit 1
  22.     ;;
  23. esac
  24.  
  25. # Automatically added by dh_installinit
  26. if [ -x "/etc/init.d/alsa-utils" ]; then
  27.     update-rc.d alsa-utils stop 50 0 6 . >/dev/null || exit $?
  28. fi
  29. # End automatically added section
  30.  
  31.  
  32.