home *** CD-ROM | disk | FTP | other *** search
/ SoftPC 4.10 / SoftPC4.10.iso / SoftPC.pkg / SoftPC.pre_install < prev    next >
Text File  |  1995-10-26  |  1KB  |  49 lines

  1. #!/bin/sh
  2. #[
  3. #    Name:            SoftPC.pre_install
  4. #    Derived From:        68k version
  5. #    Author:            Philippa Guthrie
  6. #    Created On:        29 July 1993
  7. #    Sccs ID:        %G% %W%
  8. #    Purpose:        Run necessary pre-installation for NEXTSTEP 486
  9. #                SoftPC 3.00.
  10. #    Usage:            Called automatically by the Installer before
  11. #                installation. Two arguments are provided: the
  12. #                first is the absolute pathname of the installer
  13. #                package when this script lives. The second
  14. #                argument is the absolute pathname of the
  15. #                location where the contents of this package
  16. #                will be installed. We use neither but simply
  17. #                check that the user is root.
  18. #
  19. #    (c)Copyright Insignia Solutions Ltd., 1993. All rights reserved.
  20. #
  21. #    Rcs ID block:
  22. #        $Source: /engsup/mp125/NeXT4.1/mp/RCStree/./host/install/SoftPC.pre_install,v $ 
  23. #        $Revision: 1.1 $
  24. #        $Date: 93/07/29 18:03:03 $
  25. #        $Author: pjw $
  26. #]
  27.  
  28. #
  29. # Messages (these conform to the requirements in Concepts/Installer.rtf).
  30. #
  31.  
  32. E_OK="OK"
  33. E_NOT_ROOT="FAILED (you must be logged in as root to install SoftPC)"
  34.  
  35. #
  36. # Are we root?
  37. #
  38. if test `whoami` != root
  39. then
  40.     echo $E_NOT_ROOT
  41.     exit 1
  42. fi
  43.  
  44. #
  45. # All done.
  46. #
  47. echo $E_OK
  48. exit 0
  49.