
Listing 1: Starting netconfig
to show the currently installed chains.
# netconfig
Currently configured chains:
1. nfs->sco_tcp
nfs SCO NFS Runtime System for SCO Unix
sco_tcp SCO TCP/IP for UNIX
2. sco_tcp->lo0
sco_tcp SCO TCP/IP for UNIX
lo0 SCO TCP/IP Loopback driver
3. sco_tcp->wdn0
sco_tcp SCO TCP/IP for UNIX
wdn0 SMC/WD 8003/8013 Series driver, board 0
Available options:
1. Add a chain
2. Remove a chain
3. Reconfigure an element in a chain
q. Quit
Select option: q
# []
Listing 2: Using netconfig
during the configuration of SLIP.
# netconfig
Currently configured chains:
1. nfs->sco_tcp
nfs SCO NFS Runtime System for SCO Unix
sco_tcp SCO TCP/IP for UNIX
2. sco_tcp->lo0
sco_tcp SCO TCP/IP for UNIX
lo0 SCO TCP/IP Loopback driver
3. sco_tcp->wdn0
sco_tcp SCO TCP/IP for UNIX
wdn0 SMC/WD 8003/8013 Series driver, board 0
Available options:
1. Add a chain
2. Remove a chain
3. Reconfigure an element in a chain
q. Quit
Select option: 1
Num Name Description
1. nfs SCO NFS Runtime System for SCO Unix
2. sco_tcp SCO TCP/IP for UNIX
Select top level of chain to Add or q to quit: 2
Add chain : sco_tcp->
Num Name Description
1. e3A0 3Com 501 ethernet driver, board 0
2. e3B0 3Com 503 ethernet driver, board 0
3. e3D0 3Com 507 ethernet driver, board 0
4. exos0 Excelan 205 Ethernet driver, board 0
5. hpe0 HP EISA-32 Slave LAN Adapter 0
6. hpi0 HP ISA(AT) LAN Adapter 0
7. i3B0 Racal InterLan LLI ES-3210 STREAMS Driver, board 0
8. i6E0 Racal InterLan LLI NI-6510 STREAMS Driver, board 0
9. lo0 SCO TCP/IP Loopback driver
10. ppp0 PPP Interface 0
11. ppp1 PPP Interface 1
12. sl0 SLIP Interface 0
13. tok0 IBM Token Ring Network Adapter driver, board 0
14. wdn0 Western Digital 8003/8013 Series driver, board 0
15. wdn1 Western Digital 8003/8013 Series driver, board 1
Select next level of chain to Add or q to quit: 10
Add chain sco_tcp->ppp0 (y/n): y
Adding: sco_tcp->ppp0
Configuring PPP Interface ppp0
Installing the ppp driver into the link kit ... done.
... (and so on)
Listing 3: Move NFS start-up from run level 2
to level 3 and create a new STREAMS configuration file.
# mv /etc/rc2.d/S89nfs /etc/rc3.d
# cp /etc/strcf /etc/strcf.nonet
# chown root /etc/strcf.nonet
# chgrp root /etc/strcf.nonet
# chmod 644 /etc/strcf.nonet
# []
Listing 4: Move the standard TCP/IP
start-up to level 3.
# mv /etc/rc2.d/S85tcp /etc/rc3.d/S85tcp
# ln /etc/rc3.d/S85tcp /etc/rc3.d/K85tcp
#[]
Listing 5: Comment out three lines in
/etc/tcp to remove the check for run level
``S''.
start)
set `who -r`
# if [ $9 != "S" ]; then
# exit 0
# fi
/bin/su root -c "$PS -e" 2 >/dev/null |\
/usr/bin/fgrep slink > /dev/null 2>&1
Listing 6: Create a new set of
rc2 start-up files.
# cp /etc/rc3.d/S85tcp /etc/rc2.d/S85tcp
# ln /etc/rc2.d/S85tcp /etc/rc2.d/K85tcp
# ln /etc/rc3.d/S89nfs /etc/rc2.d/K79nfs
# chown root /etc/rc2.d/S85tcp
# chgrp sys /etc/rc2.d/S85tcp
# chmod 744 /etc/rc2.d/S85tcp
# []
Listing 7: Changes to S86tcp to
use /etc/strcf.nonet
#
# STREAMS & socket initialization
#
cpd ; echo "cpd \c"
slink -c /etc/strcf.nonet ; echo "slink \c"
...
ldsocket; echo "ldsocket \c"
Listing 8: Listing of S99cleanup script
:
# @(#) S99cleanup 1.1 93/11/07
# Cleanup misc logfiles before haltsys; Jan Sall, ASK AB, Sweden
echo "Cleaning up: \c"
cd /usr/lib/uucp
./uudemon.clean > /dev/null 2>&1
echo "uucp \c"
cd /usr/adm
cp messages messages.old
cat /dev/null > messages
echo "messages \c"
cp sulog sulog.old
cat /dev/null > sulog
echo "sulog \c"
cp syslog syslog.old
cat /dev/null > syslog
echo "syslog \c"
cd /etc
cp /etc/wtmp /etc/wtmp.old
cat /dev/null > /etc/wtmp
echo "wtmp \c"
echo ""
|