Added more essential NAS modules for NSLU2, NAS100d and DSMG600RevA profiles
[openwrt.git] / package / pptp / files / pptp.sh
1 scan_pptp() {
2 scan_ppp "$@"
3 }
4
5 setup_interface_pptp() {
6 local iface="$1"
7 local config="$2"
8
9 config_get device "$config" device
10
11 for module in slhc ppp_generic ppp_async ip_gre; do
12 /sbin/insmod $module 2>&- >&-
13 done
14 setup_interface "$iface" "$config" "dhcp"
15
16 config_get mtu "$cfg" mtu
17 config_get server "$cfg" server
18 mtu=${mtu:-1452}
19 start_pppd "$config" \
20 pty "/usr/sbin/pptp $server --loglevel 0 --nolaunchpppd" \
21 file /etc/ppp/options.pptp \
22 mtu $mtu mru $mtu
23 }
This page took 0.06081 seconds and 5 git commands to generate.