Beginning with 5.0.6, you can add the default route in /etc/default/tcp. Just modify the GATEWAY= line, and /etc/tcp will read that. DON'T DO THIS ON PRIOR RELEASES; /etc/tcp doesn't look for that until 5.0.6
Prior to 5.0.6, you have choices. You could add the commands to a start-up file (/etc/rc2.d/S99route, for example: it doesn't exist, but you can create it) or modify the /etc/gateways file (see 'man routed'for the syntax of that file). The disadvantage of /etc/gateways is that it is used by routed, so if you are not running routed, that won't work.
I read the documentation, but I'm a novice. I have never
written a shell script. Although the documentation has an example, I don't know were or even how to implement the
script.
After reading the documentation, I cd to the etc/rc2.d directory.
The S90iproute file was full of if and case conditional execution
statments with no conditons.
I can't see how the documentation's example script can be
implemented in the S90iproute file.
Would it be possible to create a new file in the etc/rc2.d directory
with the example script and make it executable by changing
the user permissions?
When I use the command "route add default gateway" I can
connect outside my network, but I want the setting saved when
the computer reboots.
cstovall,
Although I have no Sco experience (I'm a FreeBSD man) it would appear quite straight forward. You need to add the command you've been using to a startup file which can be found as follows:
/etc/rc2.d/s99route
If it doesn't exist, you need to create it, and presumably need to make it executable (man chmod) also!