User guide
6: Customizing the System Configuration
DC 900-1333Q 181
any text that the SRA may generate (from printf statements) into the null device (bit
bucket). If you are unfamiliar with the vi editor, type i to start inserting text, then
<ESC> to get out of insert mode:
[If running your SRA from the operational directory, enter the
following text:]
echo
Starting my SRA > /dev/console
cd /tmp/boot
./mysra > /dev/null &
Step 3: Exit the vi editor while saving the file:
:x [from inside vi editor]
Step 4: Copy the file to the read-only partition (or you can exit the BSD shell and use
the 5-3-3 method from the Freeway Main Menu):
mount -u -o rw /usr
cp -p rc.startsra /usr/local/freeway/boot.src/
mount -u -o ro /usr
When the Freeway reboots, the rc.startsra file will be copied to the /tmp/boot directory and
executed after the
bootcfg file is processed.
Rather than use the vi editor, you may also create the
rc.startsra file on your PC, then
transfer it to the Freeway disk drive. Refer to Section 6.2 on page 161 for further infor-
mation on this method.
6.6.2 Secondary SRA Startup File (rc.startsra.local)
If the rc.startsra file already exists in the /tmp/boot directory, it may be because there is
already an SRA running on your system (for example: the Protogate Monitor SRA). In
this case you may simply edit the existing
rc.startsra file and place the commands for
starting your SRA (from Section 6.6.1) at an appropriate place near the end of the file.