fix stupid typo in firewall init script
[openwrt.git] / openwrt / package / ppp / files / ifup.pppoa
1 #!/bin/sh
2 [ $# = 0 ] && { echo " $0 <group>"; exit; }
3 . /etc/config/network
4 type=$1
5
6 eval "proto=\"\${${type}_proto}\""
7 [ "$proto" = "pppoa" ] || {
8 echo "$0: ${type}_proto isn't pppoa"
9 exit
10 }
11
12 for module in slhc ppp_generic pppoatm; do
13 /sbin/insmod $module 2>&- >&-
14 done
15
16 KEEPALIVE=${ppp_redialperiod:+lcp-echo-interval $ppp_redialperiod lcp-echo-failure 5}
17 case "$ppp_demand" in
18 on|1|enabled)
19 DEMAND=${ppp_idletime:+demand idle $ppp_idletime}
20 [ -f /etc/ppp/filter ] && DEMAND=${DEMAND:+precompiled-active-filter /etc/ppp/filter $DEMAND}
21 ;;
22 *) DEMAND="persist";;
23 esac
24 MTU=${ppp_mtu:-1500}
25
26 /usr/sbin/pppd \
27 plugin pppoatm.so ${atm_vpi:-8}.${atm_vci:-35} \
28 usepeerdns \
29 defaultroute \
30 linkname $type \
31 ipparam $type \
32 user "$ppp_username" \
33 password "$ppp_passwd" \
34 mtu $MTU mru $MTU \
35 $DEMAND \
36 $KEEPALIVE
This page took 0.044964 seconds and 5 git commands to generate.