diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2011-01-08 15:16:59 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2011-01-08 15:16:59 +0300 |
commit | e1ffa4862b5e442d5cbb8cfe0a65a8b8f1a12364 (patch) | |
tree | d7ca5dbe09a53c760e5fa4b1b10d85eb0551a4d1 /contrib | |
parent | 8e3c4febda2ea707f164fe229b8182a232620909 (diff) | |
download | accel-ppp-e1ffa4862b5e442d5cbb8cfe0a65a8b8f1a12364.tar.gz accel-ppp-e1ffa4862b5e442d5cbb8cfe0a65a8b8f1a12364.zip |
updated contrib files
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-init | 20 |
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 +} |