home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / open-vm-tools.postinst < prev    next >
Encoding:
Text File  |  2010-12-19  |  1.2 KB  |  52 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. case "${1}" in
  6.     configure)
  7.         if [ -x /usr/sbin/update-initramfs ]
  8.         then
  9.             update-initramfs -u
  10.         fi
  11.         ;;
  12.  
  13.     abort-upgrade|abort-remove|abort-deconfigure)
  14.  
  15.         ;;
  16.  
  17.     *)
  18.         echo "postinst called with unknown argument \`${1}'" >&2
  19.         exit 1
  20.         ;;
  21. esac
  22.  
  23. # Automatically added by dh_installinit
  24. if [ -x "/etc/init.d/open-vm-tools" ]; then
  25.     update-rc.d open-vm-tools start 38 2 3 4 5 . stop 38 0 1 6 . >/dev/null
  26.     if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
  27.         invoke-rc.d open-vm-tools start || exit $?
  28.     else
  29.         /etc/init.d/open-vm-tools start || exit $?
  30.     fi
  31. fi
  32. # End automatically added section
  33. # Automatically added by dh_installmodules
  34. if [ "$1" = configure ]; then
  35.     if [ -e "/etc/modprobe.d/open-vm-tools" ]; then
  36.         echo "Preserving user changes to /etc/modprobe.d/open-vm-tools.conf ..."
  37.         if [ -e "/etc/modprobe.d/open-vm-tools.conf" ]; then
  38.             mv -f "/etc/modprobe.d/open-vm-tools.conf" "/etc/modprobe.d/open-vm-tools.conf.dpkg-new"
  39.         fi
  40.         mv -f "/etc/modprobe.d/open-vm-tools" "/etc/modprobe.d/open-vm-tools.conf"
  41.     fi
  42. fi
  43. # End automatically added section
  44. # Automatically added by dh_makeshlibs
  45. if [ "$1" = "configure" ]; then
  46.     ldconfig
  47. fi
  48. # End automatically added section
  49.  
  50.  
  51. exit 0
  52.