4 . /usr/share/debconf/confmodule
6 # setiraj debconf na high i spremi stari
7 debconf_priority_preupgrade () {
10 db_get debconf/priority || true
13 if [ -n "$old_debconf" ]; then
14 db_set carnet-upgrade/debconf-priority "$old_debconf"
17 db_set debconf/priority high
22 # vrati debconf na staru vrijednost
23 debconf_priority_postupgrade () {
26 db_get carnet-upgrade/debconf-priority || true
29 if [ -n "$new_debconf" ]; then
30 db_set debconf/priority "$new_debconf"
31 db_set carnet-upgrade/debconf-priority ""
38 debconf_priority_check () {
39 db_get carnet-upgrade/debconf-priority || true
42 if [ -n "$debconf" ]; then
50 set) debconf_priority_preupgrade
52 reset) debconf_priority_postupgrade
54 check) debconf_priority_check
56 *) echo "Usage: $0 (set|reset|check)"