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 / pmount.postinst < prev    next >
Encoding:
Text File  |  2006-08-30  |  870 b   |  38 lines

  1. #! /bin/sh
  2. set -e
  3.  
  4. case "$1" in
  5.     configure)
  6.     [ -e /media ] || mkdir /media
  7.  
  8.     # confine pmount/pumount execution to $GROUP members
  9.     for prog in /usr/bin/pmount /usr/bin/pumount; do
  10.         if ! dpkg-statoverride --list $prog > /dev/null; then
  11.                 if ! getent group plugdev > /dev/null; then
  12.                     addgroup --quiet --system plugdev || true
  13.                 fi
  14.                 chown root:plugdev $prog
  15.                 chmod 4754 $prog
  16.         fi
  17.     done
  18.  
  19.         # Clean up pmount stamps in lock directories (bug from < 0.8 packages,
  20.         # see #302174)
  21.         if [ -d /var/lock/pmount ]; then
  22.             find /var/lock/pmount/ -name .created_by_pmount -exec rm -f '{}' \;
  23.         fi
  24.     ;;
  25.  
  26.     abort-upgrade|abort-remove|abort-deconfigure)
  27.     ;;
  28.  
  29.     *)
  30.         echo "postinst called with unknown argument \`$1'" >&2
  31.         exit 1
  32.     ;;
  33. esac
  34.  
  35.  
  36.  
  37. exit 0
  38.