3 STORE=/var/lib/carnet-upgrade/debconf-priority
5 # setiraj debconf na high i spremi stari
6 debconf_priority_preupgrade () {
9 old_debconf=$(debconf-show debconf | sed -n '/debconf\/priority: /s///p')
11 if [ -n "$old_debconf" ]; then
12 echo "$old_debconf" > $STORE
15 echo set debconf/priority high | debconf-communicate
19 # vrati debconf na staru vrijednost
20 debconf_priority_postupgrade () {
23 new_debconf=$(test -f $STORE && cat $STORE)
25 if [ -n "$new_debconf" ]; then
26 echo set debconf/priority "$new_debconf" | debconf-communicate
32 debconf_priority_check () {
33 debconf=$(test -f $STORE && cat $STORE)
35 if [ -n "$debconf" ]; then
43 set) debconf_priority_preupgrade
45 reset) debconf_priority_postupgrade
47 check) debconf_priority_check
49 *) echo "Usage: $0 (set|reset|check)"