# HG changeset patch # User godisch # Date 1049281533 -3600 # Node ID 82457f16cf43c8094be52353419c6b14080887d8 # Parent 900495138de9c263b30a7c4f35e4a786d6b9e2af [svn] fixed policy compliance diff -r 900495138de9 -r 82457f16cf43 debian/init --- 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