2 [ $# = 0 ] && { echo " $0 <group>"; exit; }
6 eval "proto=\"\${${type}_proto}\""
7 [ "$proto" = "pptp" ] ||
{
8 echo "$0: ${type}_proto isn't pptp"
14 for module
in slhc ppp_generic ppp_async ip_gre
; do
15 /sbin
/insmod
$module 2>&- >&-
18 KEEPALIVE
=${ppp_redialperiod:+lcp-echo-interval $ppp_redialperiod lcp-echo-failure 5}
21 DEMAND
=${ppp_idletime:+demand idle $ppp_idletime}
22 [ -f /etc
/ppp
/filter
] && DEMAND
=${DEMAND:+precompiled-active-filter /etc/ppp/filter $DEMAND}
28 [ "$pptp_proto" = "static" ] || pptp_proto
="dhcp"
29 do_ifup
$pptp_proto $type
32 pty
"/usr/sbin/pptp $pptp_server_ip --loglevel 0 --nolaunchpppd" \
33 file /etc
/ppp
/options.pptp \
40 user
"$ppp_username" \
41 password
"$ppp_passwd" \