Mercurial > noffle
comparison debian/config @ 363:014146ed83bf noffle
[svn] cleanup
author | godisch |
---|---|
date | Sat, 29 Mar 2003 07:22:04 +0000 |
parents | c036f2b55576 |
children | 36296f2b60e6 |
comparison
equal
deleted
inserted
replaced
362:c036f2b55576 | 363:014146ed83bf |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # $Id: config 501 2003-03-29 07:14:12Z godisch $ | 2 # $Id: config 502 2003-03-29 07:22:04Z 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 |
92 # input configuration using backup capability, see debconf-devel(8) | 92 # input configuration using backup capability, see debconf-devel(8) |
93 state=1 | 93 state=1 |
94 laststate=7 | 94 laststate=7 |
95 while [ "$state" -ge 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 0) | 97 0) db_input high noffle/debconf || :;; |
98 db_input high noffle/debconf || : | 98 1) db_input low noffle/port || :;; |
99 ;; | 99 2) db_input high noffle/server || :;; |
100 1) | 100 3) db_input medium noffle/username || :;; |
101 db_input low noffle/port || : | 101 4) db_get noffle/username |
102 ;; | 102 [ "$RET" ] && db_input medium noffle/password || :;; |
103 2) | 103 5) db_input medium noffle/fetchmode || :;; |
104 db_input high noffle/server || : | 104 6) db_input medium noffle/maxfetch || :;; |
105 ;; | 105 7) db_input low noffle/default-expire || :;; |
106 3) | |
107 db_input medium noffle/username || : | |
108 ;; | |
109 4) | |
110 db_get noffle/username | |
111 if [ "$RET" ]; then | |
112 db_input medium noffle/password || : | |
113 fi | |
114 ;; | |
115 5) | |
116 db_input medium noffle/fetchmode || : | |
117 ;; | |
118 6) | |
119 db_input medium noffle/maxfetch || : | |
120 ;; | |
121 7) | |
122 db_input low noffle/default-expire || : | |
123 ;; | |
124 esac | 106 esac |
125 if db_go; then | 107 if db_go; then |
126 if [ "$state" -eq 0 ]; then | 108 if [ "$state" -eq 0 ]; then |
127 db_get noffle/debconf | 109 db_get noffle/debconf |
128 [ "$RET" = true ] || break | 110 [ "$RET" = true ] || break |