2006-09-23 21:01:51 +03:00
|
|
|
scan_pptp() {
|
2006-07-30 06:09:09 +03:00
|
|
|
scan_ppp "$@"
|
|
|
|
}
|
|
|
|
|
2006-09-23 21:01:51 +03:00
|
|
|
setup_interface_pptp() {
|
2006-07-30 06:09:09 +03:00
|
|
|
local iface="$1"
|
|
|
|
local config="$2"
|
|
|
|
|
|
|
|
config_get device "$config" device
|
|
|
|
|
|
|
|
for module in slhc ppp_generic ppp_async ip_gre; do
|
|
|
|
/sbin/insmod $module 2>&- >&-
|
|
|
|
done
|
|
|
|
setup_interface "$iface" "$config" "dhcp"
|
|
|
|
|
|
|
|
config_get mtu "$cfg" mtu
|
2006-09-23 21:01:51 +03:00
|
|
|
config_get server "$cfg" server
|
2006-07-30 06:09:09 +03:00
|
|
|
mtu=${mtu:-1452}
|
|
|
|
start_pppd "$config" \
|
2007-04-21 23:19:54 +03:00
|
|
|
pty "/usr/sbin/pptp $server --loglevel 0 --nolaunchpppd" \
|
|
|
|
file /etc/ppp/options.pptp \
|
2006-09-23 21:01:51 +03:00
|
|
|
mtu $mtu mru $mtu
|
2006-07-30 06:09:09 +03:00
|
|
|
}
|