xref: /dragonfly/share/examples/startslip/slup.sh (revision 73610d44)
1#!/bin/sh
2myname=<my.ip.address>
3gateway=<gateway.ip.address>
4netmask=255.255.255.248
5tune1="link0 -link2"    # force headers compression
6tune2="mtu 296"         # for FreeBSD 1.x host
7
8case $LINE in
9	0) tune=$tune1;;        # 1st phone connected
10	1) tune=$tune2;;        # 2nd phone connected
11	*) tune=;;              # others
12esac
13
14/sbin/ifconfig $1 $2 $tune
15/sbin/ifconfig $1 inet $myname $gateway netmask $netmask
16/sbin/route add default $gateway
17