comparison debian/config @ 362:c036f2b55576 noffle

[svn] cleanup
author godisch
date Sat, 29 Mar 2003 07:14:12 +0000
parents dec92f910289
children 014146ed83bf
comparison
equal deleted inserted replaced
361:dec92f910289 362:c036f2b55576
1 #!/bin/sh 1 #!/bin/sh
2 # $Id: config 500 2003-03-29 07:12:43Z godisch $ 2 # $Id: config 501 2003-03-29 07:14:12Z godisch $
3 3
4 set -e 4 set -e
5 . /usr/share/debconf/confmodule 5 . /usr/share/debconf/confmodule
6 db_version 2.0 6 db_version 2.0
7 db_capb backup 7 db_capb backup
88 # do we need confirmation? 88 # do we need confirmation?
89 db_get noffle/fetchmode 89 db_get noffle/fetchmode
90 [ "$NOFFLE_FETCHMODE" = "$RET" ] || db_fset noffle/fetchmode seen false 90 [ "$NOFFLE_FETCHMODE" = "$RET" ] || db_fset noffle/fetchmode seen false
91 91
92 # input configuration using backup capability, see debconf-devel(8) 92 # input configuration using backup capability, see debconf-devel(8)
93 state=2 93 state=1
94 laststate=8 94 laststate=7
95 while [ "$state" -gt 0 -a "$state" -le "$laststate" ]; do 95 while [ "$state" -ge 0 -a "$state" -le "$laststate" ]; do
96 case "$state" in 96 case "$state" in
97 1) 97 0)
98 db_input high noffle/debconf || : 98 db_input high noffle/debconf || :
99 ;; 99 ;;
100 2) 100 1)
101 db_input low noffle/port || : 101 db_input low noffle/port || :
102 ;; 102 ;;
103 3) 103 2)
104 db_input high noffle/server || : 104 db_input high noffle/server || :
105 ;; 105 ;;
106 4) 106 3)
107 db_input medium noffle/username || : 107 db_input medium noffle/username || :
108 ;; 108 ;;
109 5) 109 4)
110 db_get noffle/username 110 db_get noffle/username
111 if [ "$RET" ]; then 111 if [ "$RET" ]; then
112 db_input medium noffle/password || : 112 db_input medium noffle/password || :
113 fi 113 fi
114 ;; 114 ;;
115 6) 115 5)
116 db_input medium noffle/fetchmode || : 116 db_input medium noffle/fetchmode || :
117 ;; 117 ;;
118 7) 118 6)
119 db_input medium noffle/maxfetch || : 119 db_input medium noffle/maxfetch || :
120 ;; 120 ;;
121 8) 121 7)
122 db_input low noffle/default-expire || : 122 db_input low noffle/default-expire || :
123 ;; 123 ;;
124 esac 124 esac
125 if db_go; then 125 if db_go; then
126 if [ "$state" -eq 1 ]; then 126 if [ "$state" -eq 0 ]; then
127 db_get noffle/debconf 127 db_get noffle/debconf
128 if [ "$RET" = false ]; then 128 [ "$RET" = true ] || break
129 break
130 fi
131 fi 129 fi
132 state=$(($state + 1)) 130 state=$(($state + 1))
133 else 131 else
134 state=$(($state - 1)) 132 state=$(($state - 1))
135 fi 133 fi