diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-06-11 20:09:01 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-06-11 20:09:01 +0000 |
commit | d675c9051ff90e71e766cde4da3f6bf21cac4e00 (patch) | |
tree | 5f60da28ef74b759f0b8b432abd1ecacc213bf03 /package/pptp/files | |
parent | 3c67ec79206ab4a96bb063c14ac824013dfcd448 (diff) |
[package] drop userspace pptp - it is defunct, slow and badly integrated
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32198 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/pptp/files')
-rw-r--r-- | package/pptp/files/options.pptp | 7 | ||||
-rwxr-xr-x | package/pptp/files/pptp.sh | 55 |
2 files changed, 0 insertions, 62 deletions
diff --git a/package/pptp/files/options.pptp b/package/pptp/files/options.pptp deleted file mode 100644 index 2043f0101..000000000 --- a/package/pptp/files/options.pptp +++ /dev/null @@ -1,7 +0,0 @@ -lock -noauth -nobsdcomp -nodeflate -idle 0 -mppe required,no40,no56,stateless -maxfail 0 diff --git a/package/pptp/files/pptp.sh b/package/pptp/files/pptp.sh deleted file mode 100755 index e2e4729b9..000000000 --- a/package/pptp/files/pptp.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh - -. /lib/functions.sh -. ../netifd-proto.sh -init_proto "$@" - -INCLUDE_ONLY=1 -. ./ppp.sh - -proto_pptp_init_config() { - ppp_generic_init_config - proto_config_add_string "server" - proto_config_add_boolean "buffering" - available=1 - no_device=1 -} - -proto_pptp_setup() { - local config="$1" - local iface="$2" - local load - - json_get_vars server buffering - - serv_addr= - for ip in $(resolveip -t 5 "$server"); do - ( proto_add_host_dependency "$config" "$server" ) - serv_addr=1 - done - [ -n "$serv_addr" ] || { - echo "Could not resolve server address" - sleep 5 - proto_setup_failed "$config" - exit 1 - } - - [ "${buffering:-1}" == 0 ] && buffering="--nobuffer" || buffering= - - for module in slhc ppp_generic ppp_async ip_gre; do - grep -q "$module" /proc/modules && continue - /sbin/insmod $module 2>&- >&- - load=1 - done - [ "$load" = "1" ] && sleep 1 - - ppp_generic_setup "$config" \ - pty "/usr/sbin/pptp $server --loglevel 0 --nolaunchpppd $buffering" \ - file /etc/ppp/options.pptp -} - -proto_pptp_teardown() { - ppp_generic_teardown "$@" -} - -add_protocol pptp |