home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / darwin / darwinx86.iso / usr / share / nvram / PowerExpress < prev    next >
Encoding:
Text File  |  2000-12-14  |  2.0 KB  |  62 lines

  1. ##
  2. # Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
  3. #
  4. # @APPLE_LICENSE_HEADER_START@
  5. # "Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
  6. # Reserved.  This file contains Original Code and/or Modifications of
  7. # Original Code as defined in and that are subject to the Apple Public
  8. # Source License Version 1.0 (the 'License').  You may not use this file
  9. # except in compliance with the License.  Please obtain a copy of the
  10. # License at http://www.apple.com/publicsource and read it before using
  11. # this file.
  12. # The Original Code and all software distributed under the License are
  13. # distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  14. # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  15. # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  16. # FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
  17. # License for the specific language governing rights and limitations
  18. # under the License."
  19. # @APPLE_LICENSE_HEADER_END@
  20. ##
  21. # Version: 1.2.0  Date: 8-17-2000
  22. use-nvramrc? true
  23. load-base 600000
  24. diag-device 
  25. nvramrc hex\
  26. : $D find-device ;\
  27. : $E device-end ;\
  28. : $L BLpatch ; : $R BRpatch ;\
  29. : $X execute ;\
  30. : $p 0 to my-self property ;\
  31. : $a " /chosen" $D $p $E ;\
  32. : helpb " scsi" find-device 0 to my-self\
  33. d# 5300 encode-int " AAPL,load-priority" property\
  34. unselect-dev ;\
  35. 10 buffer: km\
  36. dev kbd\
  37. get-key-map km swap move\
  38. $E\
  39. : ck 0 do swap dup 3 >> km + c@ 1 rot 7 and << and or loop ;\
  40. : bootr 0d word count encode-string " machargs" $a\
  41. 0 0 1 ck if 0 and else dup 1 = if 3d 0 1 else f 3d 0 2 then ck if 40 or then then\
  42. 40 and if bye else 1e 0 do ['] boot catch drop 1f4 ms loop then bye ;\
  43. : myboot boot-command eval ;\
  44. dev /packages/mac-parts\
  45. : $M 7F00 - 4 ;\
  46. ' my-init-program 34 + ' $M $L\
  47. ' load-partition dup\
  48. 80 + ' 2drop $L\
  49. 104 + ' 0 $L\
  50. ' load 15C + ' 0 $L\
  51. $E\
  52. dev /packages/obp-tftp\
  53. : $M dup 24 - HIS-ENET-HA 6 move 14 + ;\
  54. ' open 66C - ' $M $L\
  55. $E\
  56. " /chaos" ['] find-device catch if 2drop else\
  57. 0 to my-self 0 0 " AAPL,ignore" property then\
  58. unselect-dev
  59.