2006-09-23 20:01:51 +02:00
|
|
|
scan_pptp() {
|
2006-07-30 05:09:09 +02:00
|
|
|
scan_ppp "$@"
|
|
|
|
}
|
|
|
|
|
2006-09-23 20:01:51 +02:00
|
|
|
setup_interface_pptp() {
|
2006-07-30 05:09:09 +02: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 20:01:51 +02:00
|
|
|
config_get server "$cfg" server
|
2006-07-30 05:09:09 +02:00
|
|
|
mtu=${mtu:-1452}
|
|
|
|
start_pppd "$config" \
|
2006-09-23 20:01:51 +02:00
|
|
|
pty "/usr/sbin/pptp $server --loglevel 0 --nolaunchpppd"
|
|
|
|
file /etc/ppp/options.pptp
|
|
|
|
mtu $mtu mru $mtu
|
2006-07-30 05:09:09 +02:00
|
|
|
}
|