Remove /* within block comment.
[dragonfly/netmp.git] / share / examples / startslip / slup.sh
blob79cded33955852e2633998b5a492def1401da357
1 #!/bin/sh
2 myname=<my.ip.address>
3 gateway=<gateway.ip.address>
4 netmask=255.255.255.248
5 tune1="link0 -link2" # force headers compression
6 tune2="mtu 296" # for FreeBSD 1.x host
8 case $LINE in
9 0) tune=$tune1;; # 1st phone connected
10 1) tune=$tune2;; # 2nd phone connected
11 *) tune=;; # others
12 esac
14 /sbin/ifconfig $1 $2 $tune
15 /sbin/ifconfig $1 inet $myname $gateway netmask $netmask
16 /sbin/route add default $gateway