You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
688 B

  1. #!/bin/sh
  2. # because debconf sucks
  3. . /usr/share/debconf/confmodule
  4. set -e
  5. tmpfile=$1
  6. choices="$2"
  7. choicestrans="$3"
  8. defaults="$4"
  9. question=$5
  10. db_settitle tasksel/title
  11. db_subst $question ORIGCHOICES "$choices"
  12. db_subst $question CHOICES "$choicestrans"
  13. # Allow tasksel/first to be preseeded. If it's marked as seen, then
  14. # it must have been preseeded, and that overrides any defaults set by
  15. # tasksel.
  16. if [ "$question" = "tasksel/first" ]; then
  17. db_fget $question seen
  18. if [ "$RET" = false ]; then
  19. db_set $question "$defaults"
  20. fi
  21. else
  22. db_set $question "$defaults"
  23. fi
  24. db_input high $question || true
  25. db_go || true
  26. db_fset $question seen false
  27. db_get $question
  28. echo "$RET" >$tmpfile