summaryrefslogtreecommitdiff
path: root/contrib/debian
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2013-04-26 10:22:09 +0200
committerDmitry Kozlov <xeb@mail.ru>2013-05-01 10:57:49 +0400
commitc91a2babe00212d73b4d972bd337ae5b9273d5ed (patch)
tree39a3e98ba4f63057b6421a64c2408f0ba5e10807 /contrib/debian
parent405e580905790f22f17f736e996a4cea3635d800 (diff)
downloadaccel-ppp-c91a2babe00212d73b4d972bd337ae5b9273d5ed.tar.gz
accel-ppp-c91a2babe00212d73b4d972bd337ae5b9273d5ed.zip
initscript: Fix LSB runlevels and ACCEL_PPPD_OPTS check
* Stop daemon upon halt and reboot * Protect the ACCEL_PPPD_OPTS variable in the existence check to allow space charaters. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'contrib/debian')
-rwxr-xr-xcontrib/debian/accel-ppp-init4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/debian/accel-ppp-init b/contrib/debian/accel-ppp-init
index 08120cda..cc625256 100755
--- a/contrib/debian/accel-ppp-init
+++ b/contrib/debian/accel-ppp-init
@@ -5,7 +5,7 @@
# Required-Start: $networking
# Required-Stop: $networking
# Default-Start: 2 3 4 5
-# Default-Stop: 1
+# Default-Stop: 0 1 6
### END INIT INFO
set -e
@@ -18,7 +18,7 @@ if test -f /etc/default/accel-ppp; then
. /etc/default/accel-ppp
fi
-if [ -z $ACCEL_PPPD_OPTS ]; then
+if [ -z "$ACCEL_PPPD_OPTS" ]; then
ACCEL_PPPD_OPTS="-c /etc/accel-ppp.conf"
fi