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 / barry-util.postinst < prev    next >
Encoding:
Text File  |  2011-12-17  |  872 b   |  44 lines

  1. #!/bin/sh -e
  2.  
  3. everything() {
  4.     # set ownership for ppp options files
  5.     for f in /etc/ppp/peers/barry-*
  6.     do
  7.         chown root:dip "$f"
  8.     done
  9.  
  10.     # set permissions for chatscripts
  11.     for f in /etc/chatscripts/barry-*.chat
  12.     do
  13.         chown root:dip "$f"
  14.         chmod 0640 "$f"
  15.     done
  16. }
  17.  
  18. case "$1" in
  19.     configure)
  20.         everything
  21.  
  22.         if [ -e "/etc/modprobe.d/blacklist-berry_charge" ]; then
  23.             echo "Preserving user changes to /etc/modprobe.d/blacklist-berry_charge.conf ..."
  24.             if [ -e "/etc/modprobe.d/blacklist-berry_charge.conf" ]; then
  25.                 mv -f "/etc/modprobe.d/blacklist-berry_charge.conf" "/etc/modprobe.d/blacklist-berry_charge.conf.dpkg-new"
  26.             fi
  27.             mv -f "/etc/modprobe.d/blacklist-berry_charge" "/etc/modprobe.d/blacklist-berry_charge.conf"
  28.         fi
  29.     ;;
  30.  
  31.     abort-upgrade|abort-remove|abort-deconfigure)
  32.     ;;
  33.  
  34.     *)
  35.     echo "postinst called with unknown argument '$1'" >&2
  36.     exit 1
  37.     ;;
  38. esac
  39.  
  40.  
  41.  
  42. exit 0
  43.  
  44.