summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2011-01-08 15:16:59 +0300
committerDmitry Kozlov <xeb@mail.ru>2011-01-08 15:16:59 +0300
commite1ffa4862b5e442d5cbb8cfe0a65a8b8f1a12364 (patch)
treed7ca5dbe09a53c760e5fa4b1b10d85eb0551a4d1 /contrib
parent8e3c4febda2ea707f164fe229b8182a232620909 (diff)
downloadaccel-ppp-e1ffa4862b5e442d5cbb8cfe0a65a8b8f1a12364.tar.gz
accel-ppp-e1ffa4862b5e442d5cbb8cfe0a65a8b8f1a12364.zip
updated contrib files
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-init20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-init b/contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-init
new file mode 100755
index 00000000..4ae77d30
--- /dev/null
+++ b/contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-init
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting accel-pppd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/accel-pppd -- -p /var/run/accel-pppd.pid ${ACCEL_PPPD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping accel-pppd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/accel-pppd.pid
+ result=$?
+ start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/accel-pppd
+ result=$(( $result + $? ))
+ eend $result
+}