diff options
author | ache <ache@FreeBSD.org> | 1995-09-14 23:49:31 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-09-14 23:49:31 +0000 |
commit | 299c41389a4d8cab5ead08d9cc54439331db66ff (patch) | |
tree | 669076634f08d486cc5aa970ccb32e6e7093a194 /share/examples/startslip | |
parent | eeefadd63b4a6949162e8a346583151736dd38ef (diff) | |
download | FreeBSD-src-299c41389a4d8cab5ead08d9cc54439331db66ff.zip FreeBSD-src-299c41389a4d8cab5ead08d9cc54439331db66ff.tar.gz |
Add startslip example
Diffstat (limited to 'share/examples/startslip')
-rwxr-xr-x | share/examples/startslip/sldown.sh | 3 | ||||
-rwxr-xr-x | share/examples/startslip/slip.sh | 4 | ||||
-rwxr-xr-x | share/examples/startslip/slup.sh | 9 |
3 files changed, 16 insertions, 0 deletions
diff --git a/share/examples/startslip/sldown.sh b/share/examples/startslip/sldown.sh new file mode 100755 index 0000000..1f342a4 --- /dev/null +++ b/share/examples/startslip/sldown.sh @@ -0,0 +1,3 @@ +#!/bin/sh +/sbin/ifconfig $1 $2 +/sbin/route delete default diff --git a/share/examples/startslip/slip.sh b/share/examples/startslip/slip.sh new file mode 100755 index 0000000..c2a1275 --- /dev/null +++ b/share/examples/startslip/slip.sh @@ -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> diff --git a/share/examples/startslip/slup.sh b/share/examples/startslip/slup.sh new file mode 100755 index 0000000..df83c0c --- /dev/null +++ b/share/examples/startslip/slup.sh @@ -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 |