diff options
author | Kozlov Dmitry <dima@server> | 2010-10-06 16:55:05 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-10-06 16:55:05 +0400 |
commit | 45b3c9c5bdd896f51f47e29069e3c030ddb17d51 (patch) | |
tree | cbec5824ffb2eee20b98ad9892a357304384ff01 /contrib/gentoo/net-dialup | |
parent | ba3db9f17477ea4b49c266c5cb50f63f3b074db2 (diff) | |
parent | 01ccd98495c9da1e79f7867bf52416b23f20200d (diff) | |
download | accel-ppp-45b3c9c5bdd896f51f47e29069e3c030ddb17d51.tar.gz accel-ppp-45b3c9c5bdd896f51f47e29069e3c030ddb17d51.zip |
merged branch accel-pptpd
Diffstat (limited to 'contrib/gentoo/net-dialup')
-rw-r--r-- | contrib/gentoo/net-dialup/accel-pptp/files/options.pptp | 32 | ||||
-rw-r--r-- | contrib/gentoo/net-dialup/accel-pptp/files/pptpd-confd | 5 | ||||
-rwxr-xr-x | contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init | 21 |
3 files changed, 58 insertions, 0 deletions
diff --git a/contrib/gentoo/net-dialup/accel-pptp/files/options.pptp b/contrib/gentoo/net-dialup/accel-pptp/files/options.pptp new file mode 100644 index 00000000..d61ab80c --- /dev/null +++ b/contrib/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/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-confd b/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-confd new file mode 100644 index 00000000..1169e57f --- /dev/null +++ b/contrib/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/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init b/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init new file mode 100755 index 00000000..c0537206 --- /dev/null +++ b/contrib/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 +} |