home *** CD-ROM | disk | FTP | other *** search
- RESTART
-
- Instructions for RESTART2.COM
-
- This is the second version of the RESTART.COM program that I wrote in
- 1988, one afternoon. RESTART2 is a somewhat more flexible version. As
- with RESTART.COM, I contribute this program to the Public Domain.
-
- Tom Almy
- toma@tekgvs.labs.tek.com
- May 26, 1990
-
-
- DESCRIPTION
-
- Restart is a system configuration management program. The conflicts
- of many device drivers, tsrs, tradeoffs on ramdisks, etc, was driving
- me nuts having multiple config.sys and autoexec.bat files to maintain
- and copy. Restart maintains all the configurations in a single file,
- configur.dat. This file contains a list of allowable configuration
- names followed by descriptions of the contents of any number of files
- (typically config.sys and autoexec.bat in the root directory of the
- booting drive, but can also be used for command alias files, altering
- batch files, etc.). The file descriptions are lines to be included in
- the file. Lines can be conditionally included or excluded based on
- the configuration name.
-
- After the files are created, restart can reboot the system. A time
- delay can be specified for systems using staged-write disk caching.
- Other options disable the reboot, or writing what would be the file
- contents to the display rather than to the files (for debugging).
-
-
- THE COMMAND LINE
-
- restart
-
- with no arguments gives a short message on the allowed arguments.
-
-
- restart config
-
- will create files for configuration "config", then reboot the system.
-
-
- restart -n config
-
- same, but won't reboot the system.
-
-
- restart -p config
-
- writes what would be the file contents for configuration "config" to
- standard output (you might want to pipe the output through MORE).
-
-
- restart -4 config
-
- delays four seconds before rebooting (any integer delay, in seconds,
- can be specified).
-
-
- THE CONFIGURATION FILE
-
- The configuration file, configur.dat, is expected to be found in the
- root directory of the boot drive (It looks at the first character of
- the COMSPEC environment variable to decide which drive is the boot
- drive). If the environment variable BOOTDRIVE is defined, then the
- first character of that variable specifies the bootdrive.
-
- The first line of the configuration file specifies the allowable
- configurations. Configuration names are separated by apostrophes, and
- apostrophes are used at the beginning and end of the line as well. No
- spaces or other extraneous characters are allowed. For instance, my
- first line looks like this:
-
- '386'med'noram'small'c++'max'c60'
-
- listing seven possible configurations.
-
- The second line must specify the first file to generate. Lines
- specifying files start with an asterisk. File names should be
- specified with full drive and pathnames. My second line is:
-
- *c:\config.sys
-
- The lines that follow, up until the next file specification line or
- end of file, describe the lines which go into that file.
-
- If a line starts with a list of one or more configurations, followed
- by one or more spaces, then that line is only included for those
- configurations. For instance,
-
- 'noram'small' shell=c:\4dos.com /s:dc:\temp /p
-
- The line starting at "shell" is only placed into the file if the
- configuration is noram or small.
-
- A line that starts with a tilde is handled in the same manner, but
- with the sense reversed. For instance,
-
- ~'noram'small' shell=c:\4dos.com /s:dk: /p
-
- is only placed in the file if the configuration is not noram or
- small. In this case, it would be equivalent to:
-
- '386'med'c++'max'c60' shell=c:\4dos.com /s:dk: /p
-
- By having a line that cannot match any configuration, you can have
- comment lines in the configur.dat file:
-
- '' THIS IS A COMMENT LINE
-
- Finally, a line that starts with neither * ' nor ~ is always written
- to the file.
-
-
- Here is a small sample configur.dat file:
-
- 'clean'small'large'
- *c:\config.sys
- 'small'large' driver=\sys\mouse.sys
- 'large' driver=\sys\fastdrive.sys 1024
- 'large' buffers=5
- ~'large' buffers=10
- *c:\autoexec.bat
- 'large' pcshell/r
- 'small'large' neattsr/p/q
- PATH=\bin;\dos
-
-