X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f52d66ff00b24111f87c274d3d7085ef2e1d27b1..f84043cb6a26b0761008efa98fe9d52fd2dc63c6:/package/pptp/files/pptp.sh?ds=sidebyside diff --git a/package/pptp/files/pptp.sh b/package/pptp/files/pptp.sh index fffa625a2..4d03af008 100644 --- a/package/pptp/files/pptp.sh +++ b/package/pptp/files/pptp.sh @@ -7,17 +7,18 @@ setup_interface_pptp() { local config="$2" config_get device "$config" device + config_get ipproto "$config" ipproto for module in slhc ppp_generic ppp_async ip_gre; do /sbin/insmod $module 2>&- >&- done - setup_interface "$iface" "$config" "dhcp" + setup_interface "$iface" "$config" "${ipproto:-dhcp}" config_get mtu "$cfg" mtu config_get server "$cfg" server mtu=${mtu:-1452} start_pppd "$config" \ - pty "/usr/sbin/pptp $server --loglevel 0 --nolaunchpppd" - file /etc/ppp/options.pptp + pty "/usr/sbin/pptp $server --loglevel 0 --nolaunchpppd" \ + file /etc/ppp/options.pptp \ mtu $mtu mru $mtu }