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 / bsdmainutils.postinst < prev    next >
Encoding:
Text File  |  2010-06-17  |  776 b   |  28 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. if [ -f /usr/lib/calendar/default ]; then
  6.   mv -f /usr/lib/calendar/default /etc/calendar/default.old
  7.  
  8.   # don't kill installation if directory can't be removed
  9.   rmdir /usr/lib/calendar 2>/dev/null || true
  10. fi
  11.  
  12. # handle name change of cron script
  13. if [ -f /etc/cron.daily/calendar ]; then
  14.   mv -f /etc/cron.daily/calendar /etc/cron.daily/bsdmainutils
  15. fi
  16.  
  17. if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then
  18.     update-alternatives \
  19.     --install /usr/bin/write write /usr/bin/bsd-write 100 \
  20.     --slave /usr/share/man/man1/write.1.gz write.1.gz /usr/share/man/man1/bsd-write.1.gz
  21.  
  22.     update-alternatives \
  23.     --install /usr/bin/from from /usr/bin/bsd-from 10 \
  24.     --slave /usr/share/man/man1/from.1.gz from.1.gz /usr/share/man/man1/bsd-from.1.gz
  25. fi
  26.    
  27.  
  28.