Mercurial > noffle
view debian/config @ 424:afa2ff7b5ebf noffle
[svn] cleanup
author | godisch |
---|---|
date | Fri, 20 Jun 2003 16:58:53 +0100 |
parents | e144202d2d96 |
children | c2fd00030991 |
line wrap: on
line source
#!/bin/sh # $Id: config 567 2003-06-20 15:58:53Z godisch $ set -e . /usr/share/debconf/confmodule db_version 2.0 db_capb backup # are we using debconf? db_input high noffle/debconf && db_go || : db_get noffle/debconf if [ "$RET" = false ]; then db_stop exit 0 fi # for backward compatibility < 1.1.2-1 if dpkg --compare-versions "$2" lt-nl 1.1.2; then db_get noffle/fetchmode case "$RET" in 'via dialup') db_set noffle/fetchmode ppp;; 'via permanent connection') db_set noffle/fetchmode cron;; esac fi # input configuration using backup capability, see debconf-devel(8) state=1 laststate=7 while [ "$state" -ge 0 -a "$state" -le "$laststate" ]; do case "$state" in 0) db_input high noffle/debconf || : ;; 1) db_input low noffle/port || : ;; 2) db_input high noffle/server || : ;; 3) db_input medium noffle/username || : ;; 4) db_get noffle/username [ "$RET" ] && db_input medium noffle/password || : ;; 5) db_input medium noffle/fetchmode || : ;; 6) db_input medium noffle/maxfetch || : ;; 7) db_input low noffle/default-expire || : ;; esac if db_go; then if [ "$state" -eq 0 ]; then db_get noffle/debconf [ "$RET" = true ] || break fi state=$(($state + 1)) else state=0 fi done db_stop exit 0