home *** CD-ROM | disk | FTP | other *** search
-
-
-
- =====( CheckStart V1.00 )=========================================
-
-
- Trion 'CheckStart' Utility.
-
- (c) Copyright Paul Spijkerman, '94-'97. All rights reserved.
-
- Written for use with the Trion BBS package.
-
-
- ===================================================================
-
-
- In some occaisions you don't want the BBS to start up when
- your computer boots.
- Maybe because of a technicall problem or you just want to
- use the computer for something else.
-
- In that case you only have a split second to stop the
- BBS script.
-
- So the CheckStart programm was born which displays a little
- window with a quit button at the (exact) center of
- your workbench window.
-
- Default the window will be shown for 3 seconds and then
- disappear and return a value 0 so the script will continue.
- If you click on it it will return immediatly with a
- return value of 5 (warn).
-
- If the 3 seconds are to short (or to long ?) you can enter
- a number of seconds of your choice on the commandline.
-
- If the quit button is clicked the programm exits with
- return value 5 which isn't enough to terminate the
- script (if you didn't change the default fail value
- with failat) so you have to use the if command
- to check 'IF' the script has to stop.
- To stop the script you use the 'QUIT' command.
-
-
- You can use it in the BBS startup script by adding something
- like this:
-
-
- CheckStart
- if WARN
- echo "Trion startup aborted.."
- quit ;Stop script if CheckStart returns return code 5
- endif
-
-
-
-