Mercurial > noffle
comparison debian/config @ 364:36296f2b60e6 noffle
[svn] changed debconf backup
author | godisch |
---|---|
date | Sat, 29 Mar 2003 08:06:12 +0000 |
parents | 014146ed83bf |
children | 056d5fcb7f4b |
comparison
equal
deleted
inserted
replaced
363:014146ed83bf | 364:36296f2b60e6 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # $Id: config 502 2003-03-29 07:22:04Z godisch $ | 2 # $Id: config 503 2003-03-29 08:06: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 |
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) db_input high noffle/debconf || :;; | 97 0) db_input high noffle/debconf || : |
98 1) db_input low noffle/port || :;; | 98 ;; |
99 2) db_input high noffle/server || :;; | 99 1) db_input low noffle/port || : |
100 3) db_input medium noffle/username || :;; | 100 ;; |
101 2) db_input high noffle/server || : | |
102 ;; | |
103 3) db_input medium noffle/username || : | |
104 ;; | |
101 4) db_get noffle/username | 105 4) db_get noffle/username |
102 [ "$RET" ] && db_input medium noffle/password || :;; | 106 [ "$RET" ] && db_input medium noffle/password || : |
103 5) db_input medium noffle/fetchmode || :;; | 107 ;; |
104 6) db_input medium noffle/maxfetch || :;; | 108 5) db_input medium noffle/fetchmode || : |
105 7) db_input low noffle/default-expire || :;; | 109 ;; |
110 6) db_input medium noffle/maxfetch || : | |
111 ;; | |
112 7) db_input low noffle/default-expire || : | |
113 ;; | |
106 esac | 114 esac |
107 if db_go; then | 115 if db_go; then |
108 if [ "$state" -eq 0 ]; then | 116 if [ "$state" -eq 0 ]; then |
109 db_get noffle/debconf | 117 db_get noffle/debconf |
110 [ "$RET" = true ] || break | 118 [ "$RET" = true ] || break |
111 fi | 119 fi |
112 state=$(($state + 1)) | 120 state=$(($state + 1)) |
113 else | 121 else |
114 state=$(($state - 1)) | 122 state=0 |
115 fi | 123 fi |
116 done | 124 done |
117 | 125 |
118 db_stop | 126 db_stop |
119 exit 0 | 127 exit 0 |