summaryrefslogtreecommitdiff
path: root/openwrt/package/pptp/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-09-23 18:01:51 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-09-23 18:01:51 +0000
commit26b307274c332e06f3f2d526e0f820a11159f8c1 (patch)
tree4c2c790212ee94ecc03387ede6e31b58d5ad4ece /openwrt/package/pptp/files
parentd1c2ddcf5272b2260700b510856ac61f5566b047 (diff)
downloadmtk-20170518-26b307274c332e06f3f2d526e0f820a11159f8c1.zip
mtk-20170518-26b307274c332e06f3f2d526e0f820a11159f8c1.tar.gz
mtk-20170518-26b307274c332e06f3f2d526e0f820a11159f8c1.tar.bz2
add fixes for the pptp network scripts
SVN-Revision: 4835
Diffstat (limited to 'openwrt/package/pptp/files')
-rw-r--r--openwrt/package/pptp/files/pptp.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/openwrt/package/pptp/files/pptp.sh b/openwrt/package/pptp/files/pptp.sh
index 7847802..fffa625 100644
--- a/openwrt/package/pptp/files/pptp.sh
+++ b/openwrt/package/pptp/files/pptp.sh
@@ -1,8 +1,8 @@
-scan_pppoe() {
+scan_pptp() {
scan_ppp "$@"
}
-setup_interface_pppoe() {
+setup_interface_pptp() {
local iface="$1"
local config="$2"
@@ -14,9 +14,10 @@ setup_interface_pppoe() {
setup_interface "$iface" "$config" "dhcp"
config_get mtu "$cfg" mtu
+ config_get server "$cfg" server
mtu=${mtu:-1452}
start_pppd "$config" \
- plugin rp-pppoe.so \
- mtu $mtu mru $mtu \
- "nic-$device"
+ pty "/usr/sbin/pptp $server --loglevel 0 --nolaunchpppd"
+ file /etc/ppp/options.pptp
+ mtu $mtu mru $mtu
}