home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / binfmt-support.postinst < prev    next >
Encoding:
Text File  |  2008-05-26  |  659 b   |  30 lines

  1. #! /bin/sh
  2.  
  3. set -e
  4.  
  5. if [ "$1" = configure ]; then
  6.     /usr/sbin/update-binfmts --import || true
  7. fi
  8.  
  9. if [ -e /etc/rc2.d/S20binfmt-support ]; then
  10.     update-rc.d -f binfmt-support remove >/dev/null 2>&1
  11. fi
  12.  
  13. if [ -e /etc/rc0.d/K90binfmt-support ]; then
  14.     rm -f /etc/rc0.d/K90binfmt-support /etc/rc6.d/K90binfmt-support
  15. fi
  16.  
  17. # Automatically added by dh_installinit
  18. if [ -x "/etc/init.d/binfmt-support" ]; then
  19.     update-rc.d binfmt-support start 90 2 3 4 5 . >/dev/null
  20.     if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
  21.         invoke-rc.d binfmt-support start || true
  22.     else
  23.         /etc/init.d/binfmt-support start || true
  24.     fi
  25. fi
  26. # End automatically added section
  27.  
  28.  
  29. exit 0
  30.