home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18361 < prev    next >
Encoding:
Text File  |  1993-01-08  |  841 b   |  26 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!netnews!bandy
  3. From: bandy@netnews.jhuapl.edu (Mike Bandy)
  4. Subject: Re: Cold VS Warm
  5. Message-ID: <C0Joq9.6tC@netnews.jhuapl.edu>
  6. Organization: JHU/Applied Physics Laboratory
  7. References: <1993Jan7.225604.22838@jato.jpl.nasa.gov>
  8. Date: Fri, 8 Jan 1993 17:03:45 GMT
  9. Lines: 15
  10.  
  11. jdickson@jato.jpl.nasa.gov (Jeff Dickson) writes:
  12.  
  13. >    Is there an OS friendly way to determine if the computer was cold or
  14. >warm booted?
  15.  
  16. The way that I do it is to test whether the RAD device exists.  If it does,
  17. then it's a warm boot, if not, then we're coming from power up.  You use
  18. the "IF EXISTS RAD:" clause in your s:user-startup file.  Of course,
  19. if it doesn't exist then you should create it for this to work!
  20.  
  21. -- 
  22.  
  23.     Mike Bandy
  24.     bandy@aplcomm.jhuapl.edu
  25.     Johns Hopkins University / Applied Physics Lab
  26.