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.
 
 
 

24 lines
564 B

  1. #!/bin/sh
  2. #
  3. # Allows a task to be enabled or disabled if tasksel is running inside a
  4. # debconf instance, as in the first stage Debian install.
  5. #
  6. # To enable this test insert your tasks stanza a keyword like:
  7. #
  8. # Test-debconf: false
  9. #
  10. # This will cause the task to be available only if tasksel is not running
  11. # in debconf.
  12. if [ "$DEBIAN_HAS_FRONTEND" ]; then
  13. if [ "$2" = true ]; then
  14. exit 3 # display task, not marked for installation
  15. fi
  16. else
  17. if [ "$2" = false ]; then
  18. exit 3 # display task, not marked for installation
  19. fi
  20. fi
  21. exit 1 # do not display task