Mercurial > noffle
comparison debian/config @ 425:c2fd00030991 noffle
[svn] added preliminary ucf support
author | godisch |
---|---|
date | Fri, 20 Jun 2003 17:48:28 +0100 |
parents | afa2ff7b5ebf |
children | 14b909051b8d |
comparison
equal
deleted
inserted
replaced
424:afa2ff7b5ebf | 425:c2fd00030991 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # $Id: config 567 2003-06-20 15:58:53Z godisch $ | 2 # $Id: config 568 2003-06-20 16:48:28Z 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 |
8 | |
9 # are we using debconf? | |
10 db_input high noffle/debconf && db_go || : | |
11 db_get noffle/debconf | |
12 if [ "$RET" = false ]; then | |
13 db_stop | |
14 exit 0 | |
15 fi | |
16 | 8 |
17 # for backward compatibility < 1.1.2-1 | 9 # for backward compatibility < 1.1.2-1 |
18 if dpkg --compare-versions "$2" lt-nl 1.1.2; then | 10 if dpkg --compare-versions "$2" lt-nl 1.1.2; then |
19 db_get noffle/fetchmode | 11 db_get noffle/fetchmode |
20 case "$RET" in | 12 case "$RET" in |
23 esac | 15 esac |
24 fi | 16 fi |
25 | 17 |
26 # input configuration using backup capability, see debconf-devel(8) | 18 # input configuration using backup capability, see debconf-devel(8) |
27 state=1 | 19 state=1 |
28 laststate=7 | 20 while [ "$state" -ge 1 -a "$state" -le 7 ]; do |
29 while [ "$state" -ge 0 -a "$state" -le "$laststate" ]; do | |
30 case "$state" in | 21 case "$state" in |
31 0) db_input high noffle/debconf || : | |
32 ;; | |
33 1) db_input low noffle/port || : | 22 1) db_input low noffle/port || : |
34 ;; | 23 ;; |
35 2) db_input high noffle/server || : | 24 2) db_input high noffle/server || : |
36 ;; | 25 ;; |
37 3) db_input medium noffle/username || : | 26 3) db_input medium noffle/username || : |
45 ;; | 34 ;; |
46 7) db_input low noffle/default-expire || : | 35 7) db_input low noffle/default-expire || : |
47 ;; | 36 ;; |
48 esac | 37 esac |
49 if db_go; then | 38 if db_go; then |
50 if [ "$state" -eq 0 ]; then | |
51 db_get noffle/debconf | |
52 [ "$RET" = true ] || break | |
53 fi | |
54 state=$(($state + 1)) | 39 state=$(($state + 1)) |
55 else | 40 else |
56 state=0 | 41 state=$(($state - 1)) |
57 fi | 42 fi |
58 done | 43 done |
59 | 44 |
60 db_stop | 45 db_stop |
61 exit 0 | 46 exit 0 |