From c91a2babe00212d73b4d972bd337ae5b9273d5ed Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Fri, 26 Apr 2013 10:22:09 +0200 Subject: 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 --- contrib/debian/accel-ppp-init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/debian') 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 -- cgit v1.2.3