Mercurial > noffle
diff debian/init @ 371:82457f16cf43 noffle
[svn] fixed policy compliance
author | godisch |
---|---|
date | Wed, 02 Apr 2003 12:05:33 +0100 |
parents | 8f8db12ae359 |
children | 62b17f6d0269 |
line wrap: on
line diff
--- a/debian/init Tue Apr 01 14:51:47 2003 +0100 +++ b/debian/init Wed Apr 02 12:05:33 2003 +0100 @@ -1,17 +1,18 @@ #!/bin/sh -# $Id: init 477 2003-03-04 22:16:42Z godisch $ +# $Id: init 511 2003-04-02 11:05:33Z godisch $ -PATH=/bin:/usr/bin:/sbin:/usr/sbin +set -e +NOFFLE=/usr/bin/noffle +[ -x "$NOFFLE" ] || exit 0 -NOFFLE=/usr/bin/noffle if [ -x /usr/sbin/pppd ]; then NOFFLE_FETCHMODE="ppp" else NOFFLE_FETCHMODE="cron" fi -[ -f /etc/default/noffle ] && . /etc/default/noffle || : - -[ -x "$NOFFLE" ] || exit 0 +if [ -f /etc/default/noffle ]; then + . /etc/default/noffle +fi case "$1" in online|offline) @@ -29,11 +30,10 @@ stop) $0 offline ;; -restart|force-reload) - $0 start +reload|force-reload|restart) ;; *) - echo "Usage: $0 {start|stop}" >&2 + echo "Usage: $0 {start|stop|online|offline}" >&2 exit 1 ;; esac