Add startslip example
This commit is contained in:
parent
eeefadd63b
commit
299c41389a
@ -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
|
||||
|
||||
|
3
share/examples/startslip/sldown.sh
Executable file
3
share/examples/startslip/sldown.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
/sbin/ifconfig $1 $2
|
||||
/sbin/route delete default
|
4
share/examples/startslip/slip.sh
Executable file
4
share/examples/startslip/slip.sh
Executable 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>
|
9
share/examples/startslip/slup.sh
Executable file
9
share/examples/startslip/slup.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user