| jan94.tar |
Listing 2: SLIP autoconfigure example for SCO
/etc/slattach PORT LOCAL_IP REMOTE_IP BAUD & #sl0 echo " SLIP Interface 0 :\c" echo " configuring ..." echo $! > /tmp/sl0.0 echo " Evaluating SLIP ...." ping -c5 REMOTE_IP 2>&1 >/tmp/ping.sl0 grep icmp_seq /tmp/ping.sl0 2>&1 >/dev/null if [ $? -ne 0 ] then echo " ** ERROR : Can't contact remote SLIP destination " echo " Marking SLIP Interface down" ifconfig sl0 down RESULTS=`ifconfig sl0` echo " $RESULTS" echo " SLIP Disconnect Complete" else echo " SLIP Connect Complete" fi rm /tmp/ping.sl0 2>/dev/null rm /tmp/sl0.0 2>/dev/null
|