Mercurial > noffle
diff debian/init @ 334:08222dbe6eb0 noffle
[svn] cleanup
author | godisch |
---|---|
date | Sat, 01 Mar 2003 17:40:38 +0000 |
parents | 399ccb5e641b |
children | 1aa1ed030464 |
line wrap: on
line diff
--- a/debian/init Sat Mar 01 17:39:39 2003 +0000 +++ b/debian/init Sat Mar 01 17:40:38 2003 +0000 @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: init 437 2003-02-16 08:47:33Z godisch $ +# $Id: init 470 2003-03-01 17:40:38Z godisch $ PATH=/bin:/usr/bin:/sbin:/usr/sbin @@ -9,7 +9,9 @@ else NOFFLE_FETCHMODE="cron" fi -[ -f /etc/default/noffle ] && . /etc/default/noffle +if [ -f /etc/default/noffle ]; then + . /etc/default/noffle +fi [ -x "$NOFFLE" ] || exit 0 @@ -20,8 +22,11 @@ ;; start) echo "Initializing offline news server: noffle." - [ "$NOFFLE_FETCHMODE" = ppp ] && $NOFFLE --offline - [ "$NOFFLE_FETCHMODE" = cron ] && $NOFFLE --online + if [ "$NOFFLE_FETCHMODE" = ppp ]; then + $NOFFLE --offline;; + else + $NOFFLE --online;; + fi ;; stop) $0 offline