freebsd-skq/share/examples/startslip/slup.sh

17 lines
451 B
Bash
Raw Normal View History

1995-09-14 23:49:31 +00:00
#!/bin/sh
myname=<my.ip.address>
gateway=<gateway.ip.address>
netmask=255.255.255.248
1995-09-15 16:45:49 +00:00
tune1="link0 -link2" # force headers compression
tune2="mtu 296" # for FreeBSD 1.x host
case $LINE in
0) tune=$tune1;; # 1st phone connected
1) tune=$tune2;; # 2nd phone connected
*) tune=;; # others
esac
1995-09-14 23:49:31 +00:00
/sbin/ifconfig $1 $2 $tune
/sbin/ifconfig $1 inet $myname $gateway netmask $netmask
/sbin/route add default $gateway