diff options
Diffstat (limited to 'share/examples/startslip')
-rwxr-xr-x | share/examples/startslip/slup.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/share/examples/startslip/slup.sh b/share/examples/startslip/slup.sh index df83c0c..79cded3 100755 --- a/share/examples/startslip/slup.sh +++ b/share/examples/startslip/slup.sh @@ -2,7 +2,14 @@ myname=<my.ip.address> gateway=<gateway.ip.address> netmask=255.255.255.248 -tune="link0 -link2" # links means force compression +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 /sbin/ifconfig $1 $2 $tune /sbin/ifconfig $1 inet $myname $gateway netmask $netmask |