Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 2nd, 2010  |  syntax: Bash  |  size: 0.20 KB  |  hits: 200  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. post_install()
  2. {
  3.  
  4.         echo -n "module test... "
  5.  
  6.         perl -mConvert::BinHex -e "exit 0;" 2> /dev/null && echo 'pass.' || echo 'fail.'
  7.  
  8. }
  9.  
  10. post_upgrade()
  11. {
  12.         post_install
  13. }
  14.  
  15. op=$1
  16.  
  17. shift
  18.  
  19. $op $*