home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Connectivity / GateKeeper-2.1 / GateKeeper.pre_install < prev    next >
Encoding:
Text File  |  1997-07-02  |  496 b   |  24 lines

  1. #! /bin/sh
  2. if [ "`whoami`" != "root" ] ; then
  3.     echo ""
  4.     echo You are not root.
  5.     echo Only the superuser can install a GateKeeper.
  6.     exit 1
  7. fi
  8.  
  9. #
  10. #    save config files in app wrapper
  11. #
  12. cd ${2}
  13. if ( test -r ./GateKeeper.app/options ) ; then
  14.     cp ./GateKeeper.app/options /tmp/options
  15. fi
  16. if ( test -r ./GateKeeper.app/pppup ) ; then
  17.     cp ./GateKeeper.app/pppup /tmp/pppup
  18. fi
  19. if ( test -r ./GateKeeper.app/modemInit ) ; then
  20.     rm -f ./GateKeeper.app/modemInit
  21. fi
  22.     echo "pre install script complete"
  23. exit 0
  24.