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 / example-content.postrm < prev    next >
Encoding:
Text File  |  2006-10-11  |  545 b   |  33 lines

  1. #!/bin/sh -e
  2.  
  3. case "$1" in
  4.     remove|disappear|upgrade|failed-upgrade|abort-install|abort-upgrade)
  5.         ;;
  6.  
  7.     purge)
  8.         # We can't clean users home directories who were provided with
  9.         # symlinks already, but at least remove them from /etc/skel
  10.  
  11.         # the 'Installation' case
  12.     
  13.         if [ -L /etc/skel/Examples ]; then
  14.             rm -f /etc/skel/Examples
  15.         fi
  16.  
  17.         # the 'Live CD' case
  18.  
  19.         if [ -L /etc/skel/Desktop/Examples ]; then
  20.             rm -f /etc/skel/Desktop/Examples
  21.         fi
  22.         ;;
  23.         
  24.     *)
  25.         echo "$0: didn't understand being called with \`$1'" 1>&2
  26.         exit 1
  27.         ;;
  28.  
  29. esac
  30.  
  31.  
  32.  
  33.