Mercurial > noffle
diff debian/config @ 341:8f8db12ae359 noffle
[svn] minor cleanup
author | godisch |
---|---|
date | Tue, 04 Mar 2003 22:16:42 +0000 |
parents | ff1945b26212 |
children | d1007cf6a49c |
line wrap: on
line diff
--- a/debian/config Tue Mar 04 21:20:07 2003 +0000 +++ b/debian/config Tue Mar 04 22:16:42 2003 +0000 @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: config 475 2003-03-04 21:08:27Z godisch $ +# $Id: config 477 2003-03-04 22:16:42Z godisch $ set -e @@ -76,24 +76,23 @@ # read NOFFLE_FETCHMODE from $debian_config [ -s "$debian_config" ] && . $debian_config || : -if [ "$NOFFLE_FETCHMODE" != ppp -a "$NOFFLE_FETCHMODE" != cron ]; then - if [ -x /usr/sbin/pppd ]; then - NOFFLE_FETCHMODE=ppp - else - NOFFLE_FETCHMODE=cron - fi +[ "$NOFFLE_FETCHMODE" = ppp -o "$NOFFLE_FETCHMODE" = cron ] || \ +if [ -x /usr/sbin/pppd ]; then + NOFFLE_FETCHMODE=ppp +else + NOFFLE_FETCHMODE=cron fi # do we need confirmation? db_get noffle/fetchmode || RET="" [ "$NOFFLE_FETCHMODE" = "$RET" ] || db_fset noffle/fetchmode seen false || : # input server port, parent server, username, password, fetchmode, maxfetch, default-expire -db_input low noffle/port && db_go || : -db_input high noffle/server && db_go || : -db_input medium noffle/username && db_go || : -db_input medium noffle/password && db_go || : -db_input medium noffle/fetchmode && db_go || : -db_input medium noffle/maxfetch && db_go || : +db_input low noffle/port && db_go || : +db_input high noffle/server && db_go || : +db_input medium noffle/username && db_go || : +db_input medium noffle/password && db_go || : +db_input medium noffle/fetchmode && db_go || : +db_input medium noffle/maxfetch && db_go || : db_input low noffle/default-expire && db_go || : db_stop