Add startslip example

This commit is contained in:
ache 1995-09-14 23:49:31 +00:00
parent eeefadd63b
commit 299c41389a
4 changed files with 18 additions and 2 deletions

View File

@ -1,8 +1,8 @@
# $Id: Makefile,v 1.14 1995/08/12 16:28:10 joerg Exp $
# $Id: Makefile,v 1.15 1995/08/14 16:07:57 wollman Exp $
#
# Doing a make install builds /usr/share/examples
DIRS=etc find_interface FreeBSD_version ibcs2 lkm sunrpc
DIRS=etc find_interface FreeBSD_version ibcs2 lkm startslip sunrpc
DDIR=${DESTDIR}/usr/share/examples

View File

@ -0,0 +1,3 @@
#!/bin/sh
/sbin/ifconfig $1 $2
/sbin/route delete default

View File

@ -0,0 +1,4 @@
#!/bin/sh
startslip -b 57600 -U ./slup.sh -D ./sldown.sh \
-s atd<phone1> -s atd<phone2> -s atd<phone3> \
-h -t 60 -w 2 /dev/cuaa1 <login> <password>

View File

@ -0,0 +1,9 @@
#!/bin/sh
myname=<my.ip.address>
gateway=<gateway.ip.address>
netmask=255.255.255.248
tune="link0 -link2" # links means force compression
/sbin/ifconfig $1 $2 $tune
/sbin/ifconfig $1 inet $myname $gateway netmask $netmask
/sbin/route add default $gateway