home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / vino.postinst < prev    next >
Encoding:
Text File  |  2007-04-09  |  1.1 KB  |  42 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. case "$1" in
  6.     configure)
  7.         kill -HUP `pidof bonobo-activation-server` >/dev/null 2>&1 || true
  8.     ;;
  9.  
  10.     abort-upgrade|abort-remove|abort-deconfigure)
  11.  
  12.     ;;
  13.  
  14.     *)
  15.         echo "postinst called with unknown argument \`$1'" >&2
  16.         exit 1
  17.     ;;
  18. esac
  19.  
  20. # Automatically added by dh_gconf
  21. if [ "$1" = "configure" ]; then
  22.     gconf-schemas --register vino-server.schemas 
  23. fi
  24. # End automatically added section
  25. # Automatically added by dh_desktop
  26. if [ "$1" = "configure" ] && which update-desktop-database >/dev/null 2>&1 ; then
  27.     update-desktop-database -q
  28. fi
  29. # End automatically added section
  30. # Automatically added by dh_iconcache
  31. touch -m /usr/share/icons/hicolor
  32. if [ "$1" = configure ] && \
  33.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  34.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ] && \
  35.    [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  36.    [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  37.     gtk-update-icon-cache -q /usr/share/icons/hicolor
  38. fi
  39. # End automatically added section
  40.  
  41.  
  42.