summaryrefslogtreecommitdiff
path: root/gentoo/net-dialup/accel-pptp/files
diff options
context:
space:
mode:
authorxeb <xeb@mail.ru>2009-12-10 22:37:02 +0300
committerxeb <xeb@mail.ru>2009-12-10 22:37:02 +0300
commitbff559ff7527db6f85c8cc5385bbb6a34686c4cf (patch)
tree7efb885b1d226526bf8aad7681f7ebb34d1608b6 /gentoo/net-dialup/accel-pptp/files
parent9db6020c32d86c330b470158805a2918d8d747dd (diff)
downloadaccel-ppp-xebd-bff559ff7527db6f85c8cc5385bbb6a34686c4cf.tar.gz
accel-ppp-xebd-bff559ff7527db6f85c8cc5385bbb6a34686c4cf.zip
Revert "using per-cpu threads for packet receiveing/transmiting"
This reverts commit 9db6020c32d86c330b470158805a2918d8d747dd.
Diffstat (limited to 'gentoo/net-dialup/accel-pptp/files')
-rw-r--r--gentoo/net-dialup/accel-pptp/files/options.pptp32
-rw-r--r--gentoo/net-dialup/accel-pptp/files/pptpd-confd5
-rwxr-xr-xgentoo/net-dialup/accel-pptp/files/pptpd-init21
3 files changed, 58 insertions, 0 deletions
diff --git a/gentoo/net-dialup/accel-pptp/files/options.pptp b/gentoo/net-dialup/accel-pptp/files/options.pptp
new file mode 100644
index 0000000..d61ab80
--- /dev/null
+++ b/gentoo/net-dialup/accel-pptp/files/options.pptp
@@ -0,0 +1,32 @@
+#
+# Lock the port
+#
+#lock
+
+#
+# We don't need the tunnel server to authenticate itself
+#
+noauth
+
+#
+# Turn off transmission protocols we know won't be used
+#
+nobsdcomp
+nodeflate
+
+#
+# We want MPPE
+#
+require-mppe
+
+#
+# We want a sane mtu/mru
+#
+mtu 1437
+mru 1437
+
+#
+# Time this thing out of it goes poof
+#
+lcp-echo-failure 10
+lcp-echo-interval 10
diff --git a/gentoo/net-dialup/accel-pptp/files/pptpd-confd b/gentoo/net-dialup/accel-pptp/files/pptpd-confd
new file mode 100644
index 0000000..1169e57
--- /dev/null
+++ b/gentoo/net-dialup/accel-pptp/files/pptpd-confd
@@ -0,0 +1,5 @@
+# Config file for /etc/init.d/pptpd
+
+# Any extra options you want to pass to pptpd
+# on start-up should be put here.
+PPTPD_OPTS=""
diff --git a/gentoo/net-dialup/accel-pptp/files/pptpd-init b/gentoo/net-dialup/accel-pptp/files/pptpd-init
new file mode 100755
index 0000000..c053720
--- /dev/null
+++ b/gentoo/net-dialup/accel-pptp/files/pptpd-init
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting pptpd"
+ modprobe pptp
+ start-stop-daemon --start --quiet --exec /usr/sbin/pptpd -- ${PPTPD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping pptpd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/pptpd.pid
+ result=$?
+ start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/pptpctrl
+ result=$(( $result + $? ))
+ eend $result
+}