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