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 / util-linux.postinst < prev    next >
Encoding:
Text File  |  2007-03-12  |  1.2 KB  |  41 lines

  1. #! /bin/sh
  2.  
  3. umask 022
  4. set -e
  5.  
  6. install-info --quiet --section "Development" "Development" \
  7.   --description="System V interprocess communication facilities" \
  8.   /usr/share/info/ipc.info.gz
  9. update-alternatives --install /usr/bin/pager pager /bin/more 50 \
  10.   --slave /usr/share/man/man1/pager.1.gz pager.1.gz /usr/share/man/man1/more.1.gz
  11. update-alternatives --install /usr/bin/pager pager /usr/bin/pg 10 \
  12.   --slave /usr/share/man/man1/pager.1.gz pager.1.gz /usr/share/man/man1/pg.1.gz
  13.  
  14. #
  15. #    Check if links to hwclock.sh are present in runlevel "6".
  16. #    If not, remove the ones from runlevel "S" so that
  17. #    update-rc.d will do it's job.
  18. #
  19. if [ ! -f /etc/rc6.d/???hwclock.sh ] && [ ! -f /etc/rc0.d/???hwclock.sh ]
  20. then
  21.     rm -f /etc/rcS.d/???hwclock.sh
  22. fi
  23.  
  24. # hwclock works on all Linux architectures, except s390 (and s390x, of course).
  25. if [ "$(uname -s)" = "Linux" ]; then
  26.     model=$(uname -m)
  27.     if [ ${model%x} != "s390" ]; then
  28.     update-rc.d -f hwclockfirst.sh remove >/dev/null 2>&1
  29.         update-rc.d -f hwclock.sh remove 2>/dev/null > /dev/null
  30.         update-rc.d hwclock.sh start 50 S . stop 25 0 6 . > /dev/null
  31.     fi
  32. fi
  33.  
  34. if [ -x /usr/sbin/update-mime ]; then
  35.     update-mime
  36. fi
  37.  
  38. if [ -L /usr/doc/util-linux ] ; then
  39.     rm -f /usr/doc/util-linux
  40. fi
  41.