summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
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
+}